mirror of
https://github.com/supabase/supabase.git
synced 2026-10-17 23:29:08 +03:00
Add new command menu to studio. Ports over commands from old menu (with some minor reorganization), then adds: - Branch switcher - Project switcher
13 lines
491 B
TypeScript
13 lines
491 B
TypeScript
import { useDisallowHipaa } from 'hooks/misc/useDisallowHipaa'
|
|
import { useSelectedOrganization } from 'hooks/misc/useSelectedOrganization'
|
|
import { OPT_IN_TAGS } from 'lib/constants'
|
|
|
|
export function useOrgOptedIntoAi() {
|
|
const selectedOrganization = useSelectedOrganization()
|
|
const optInTags = selectedOrganization?.opt_in_tags
|
|
const isOptedIntoAI = optInTags?.includes(OPT_IN_TAGS.AI_SQL) ?? false
|
|
|
|
const disallowHipaa = useDisallowHipaa()
|
|
return disallowHipaa(isOptedIntoAI)
|
|
}
|