Files
supabase/packages/ui-patterns/CommandMenu/prepackaged/Changelog.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

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 }