import { ArrowRight } from 'lucide-react' import { isFeatureEnabled } from 'common' import type { ICommand } from 'ui-patterns/CommandMenu' import { useRegisterCommands } from 'ui-patterns/CommandMenu' const navCommands = [ { id: 'nav-getting-started', name: 'Go to Getting Started', route: '/guides/getting-started', icon: () => , }, { id: 'nav-database', name: 'Go to Database', route: '/guides/database/overview', icon: () => , }, { id: 'nav-auth', name: 'Go to Auth', route: '/guides/auth', icon: () => , }, { id: 'nav-storage', name: 'Go to Storage', route: '/guides/storage', icon: () => , }, { id: 'nav-functions', name: 'Go to Functions', route: '/guides/functions', icon: () => , }, { id: 'nav-realtime', name: 'Go to Realtime', route: '/guides/realtime', icon: () => , }, { id: 'nav-ai', name: 'Go to AI & Vectors', route: '/guides/ai', icon: () => , }, { id: 'nav-rest', name: 'Go to REST API', route: '/guides/api', icon: () => , }, { id: 'nav-graphql', name: 'Go to GraphQL', route: '/guides/graphql', icon: () => , }, { id: 'nav-local-cli', name: 'Go to Local Dev / CLI', route: '/guides/cli', icon: () => , }, { id: 'nav-platform', name: 'Go to Platform', route: '/guides/platform', icon: () => , }, { id: 'nav-self-hosting', name: 'Go to Self-Hosting', route: '/guides/self-hosting', icon: () => , }, { id: 'nav-ref-javascript', name: 'Go to JavaScript reference', value: 'Reference, API, SDK: Go to JavaScript reference (JS)', route: '/reference/javascript/introduction', icon: () => , }, { id: 'nav-ref-dart', name: 'Go to Dart reference', value: 'Reference, API, SDK: Go to Dart reference (Flutter)', route: '/reference/dart/introduction', icon: () => , enabled: isFeatureEnabled('sdk:dart'), }, { id: 'nav-ref-python', name: 'Go to Python reference', value: 'Reference, API, SDK: Go to Python reference', route: '/reference/python/introduction', icon: () => , enabled: isFeatureEnabled('sdk:python'), }, { id: 'nav-ref-csharp', name: 'Go to C# reference', value: 'Reference, API, SDK: Go to C# reference', route: '/reference/csharp/introduction', icon: () => , enabled: isFeatureEnabled('sdk:csharp'), }, { id: 'nav-ref-swift', name: 'Go to Swift reference', value: 'Reference, API, SDK: Go to Swift reference', route: '/reference/swift/introduction', icon: () => , enabled: isFeatureEnabled('sdk:swift'), }, { id: 'nav-ref-kotlin', name: 'Go to Kotlin reference', value: 'Reference, API, SDK: Go to Kotlin reference', route: '/reference/kotlin/introduction', icon: () => , enabled: isFeatureEnabled('sdk:kotlin'), }, { id: 'nav-ref-cli', name: 'Go to CLI reference', value: 'Reference, API, SDK: Go to CLI reference', route: '/reference/cli/introduction', icon: () => , }, { id: 'nav-ref-api', name: 'Go to Management API reference', value: 'Reference, API, SDK: Go to Management API reference', route: '/reference/api/introduction', icon: () => , }, { id: 'nav-resources', name: 'Go to Guides & Examples', route: '/guides/resources', icon: () => , }, { id: 'nav-integrations', name: 'Go to Integrations', route: 'https://supabase.com/partners/integrations', icon: () => , enabled: isFeatureEnabled('integrations:partners'), }, { id: 'nav-ui', name: 'Go to Supabase UI Library', route: 'https://supabase.com/ui', icon: () => , }, ] satisfies Array const filteredNavCommands = navCommands.filter((command) => command.enabled !== false) const useDocsNavCommands = () => { useRegisterCommands('Go to', filteredNavCommands) } export { useDocsNavCommands }