mirror of
https://github.com/supabase/supabase.git
synced 2026-10-14 13:49:09 +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
392 B
TypeScript
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'
|