mirror of
https://github.com/supabase/supabase.git
synced 2026-10-07 10:25:06 +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
341 B
TypeScript
13 lines
341 B
TypeScript
import dynamic from 'next/dynamic'
|
|
|
|
import { useCommandMenuInitiated } from 'ui-patterns/CommandMenu'
|
|
|
|
const LazyCommandMenu = dynamic(() => import('./CommandMenu'), { ssr: false })
|
|
|
|
const StudioCommandMenu = () => {
|
|
const isInitiated = useCommandMenuInitiated()
|
|
return isInitiated && <LazyCommandMenu />
|
|
}
|
|
|
|
export { StudioCommandMenu }
|