ai-manga-factory / src /lib /useBetaEnabled.ts
jbilcke-hf's picture
jbilcke-hf HF staff
working on the Hugging Face Sign-In
0ed5b20
raw
history blame
234 Bytes
"use client"
import { useSearchParams } from "next/navigation"
export function useBetaEnabled(): boolean {
const searchParams = useSearchParams()
const isBetaEnabled = searchParams.get("beta") === "true"
return isBetaEnabled
}