Files
supabase/apps/studio/components/interfaces/SqlGenerator/SqlGenerator.tsx
T
Charis 84732ff44c feat: add new command menu to studio (#28432)
Add new command menu to studio. Ports over commands from old menu (with some minor reorganization), then adds:
- Branch switcher
- Project switcher
2024-08-08 16:42:07 -04:00

13 lines
392 B
TypeScript

import dynamic from 'next/dynamic'
import { memo } from 'react'
import { useCommandMenuInitiated } from 'ui-patterns/CommandMenu'
const LazyGenerateSql = dynamic(() => import('./SqlGeneratorImpl'), { ssr: false })
export const GenerateSql = memo(() => {
const isInitiated = useCommandMenuInitiated()
return isInitiated && <LazyGenerateSql />
})
GenerateSql.displayName = 'GenerateSql'