mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 01:45:10 +03: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]
|
|
}
|