mirror of
https://github.com/supabase/supabase.git
synced 2026-05-30 09:23:00 +08:00
8 lines
198 B
TypeScript
8 lines
198 B
TypeScript
import { useContext } from 'react'
|
|
import FlagContext from 'components/Flag/FlagContext'
|
|
|
|
export function useFlag(name: string) {
|
|
const store: any = useContext(FlagContext)
|
|
return store[name]
|
|
}
|