Changelog.tsx21 lines · main
| 1 | import { useRegisterCommands } from '..' |
| 2 | import { Inbox } from 'lucide-react' |
| 3 | |
| 4 | import { BASE_PATH } from './shared/constants' |
| 5 | |
| 6 | const 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 | |
| 21 | export { useChangelogCommand } |