mirror of
https://github.com/supabase/supabase.git
synced 2026-10-16 06:39: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
22 lines
490 B
TypeScript
22 lines
490 B
TypeScript
import { Inbox } from 'lucide-react'
|
|
|
|
import { useRegisterCommands } from '..'
|
|
import { BASE_PATH } from './shared/constants'
|
|
|
|
const useChangelogCommand = ({ enabled = true }: { enabled?: boolean } = {}) => {
|
|
useRegisterCommands(
|
|
'Updates',
|
|
[
|
|
{
|
|
id: 'changelog',
|
|
name: 'Changelog',
|
|
route: BASE_PATH ? 'https://supabase.com/changelog' : '/changelog',
|
|
icon: () => <Inbox />,
|
|
},
|
|
],
|
|
{ enabled }
|
|
)
|
|
}
|
|
|
|
export { useChangelogCommand }
|