mirror of
https://github.com/supabase/supabase.git
synced 2026-07-02 04:54:28 +08:00
* Remove extra file. * Remove unneeded tsconfig.jsons. * Add @/* alias for importing in-package files to all apps. * Remove baseUrl from all apps except studio (it'll require changes in almost all files). * Fix baseUrl issues in docs, ui-library and design-system. * Fix the typecheck for cms app. Fix all baseUrl errors in the cms app. * Add deprecated flag to baseUrl in www.
8 lines
200 B
TypeScript
8 lines
200 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]
|
|
}
|