Changelog.tsx21 lines · main
1import { useRegisterCommands } from '..'
2import { Inbox } from 'lucide-react'
3
4import { BASE_PATH } from './shared/constants'
5
6const useChangelogCommand = ({ enabled = true }: { enabled?: boolean } = {}) => {
7 useRegisterCommands(
8 'Updates',
9 [
10 {
11 id: 'changelog',
12 name: 'View changelog',
13 route: BASE_PATH ? 'https://supabase.com/changelog' : '/changelog',
14 icon: () => <Inbox />,
15 },
16 ],
17 { enabled }
18 )
19}
20
21export { useChangelogCommand }