Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

495 B
Raw Blame
import { useRegisterCommands } from '..'
import { Inbox } from 'lucide-react'

import { BASE_PATH } from './shared/constants'

const useChangelogCommand = ({ enabled = true }: { enabled?: boolean } = {}) => {
  useRegisterCommands(
    'Updates',
    [
      {
        id: 'changelog',
        name: 'View changelog',
        route: BASE_PATH ? 'https://supabase.com/changelog' : '/changelog',
        icon: () => <Inbox />,
      },
    ],
    { enabled }
  )
}

export { useChangelogCommand }