File size: 234 Bytes
0ed5b20
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
"use client"

import { useSearchParams } from "next/navigation"

export function useBetaEnabled(): boolean {
  const searchParams = useSearchParams()
  const isBetaEnabled = searchParams.get("beta") === "true"
  return isBetaEnabled
}