mirror of
https://github.com/supabase/supabase.git
synced 2026-05-09 10:19:50 -04:00
4a0bb36ca8
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com> Co-authored-by: Ivan Vasilov <vasilov.ivan@gmail.com>
34 lines
1.8 KiB
TypeScript
34 lines
1.8 KiB
TypeScript
import { useIsLoggedIn } from 'common'
|
|
|
|
import { useStorageGotoCommands } from '../interfaces/Storage/Storage.Commands'
|
|
import { useAdvisorsGoToCommands } from './AdvisorsLayout/Advisors.Commands'
|
|
import { useAuthGotoCommands } from './AuthLayout/Auth.Commands'
|
|
import { useBillingGotoCommands } from './BillingLayout/Billing.Commands'
|
|
import { useDatabaseGotoCommands } from './DatabaseLayout/Database.Commands'
|
|
import { useFunctionsGotoCommands } from './EdgeFunctionsLayout/EdgeFunctions.Commands'
|
|
import { useIntegrationsGotoCommands } from './IntegrationsLayout/Integrations.Commands'
|
|
import { useLogsGotoCommands } from './LogsLayout/Logs.Commands'
|
|
import { useProjectSettingsGotoCommands } from './ProjectSettingsLayout/ProjectSettings.Commands'
|
|
import { useReportsGotoCommands } from './ReportsLayout/Reports.Commands'
|
|
import { useSqlEditorGotoCommands } from './SQLEditorLayout/SqlEditor.Commands'
|
|
import { useTableEditorGotoCommands } from './TableEditorLayout/TableEditor.Commands'
|
|
import { useApiDocsGotoCommands } from '@/components/interfaces/ProjectAPIDocs/ProjectAPIDocs.Commands'
|
|
|
|
export function useLayoutNavCommands() {
|
|
const isLoggedIn = useIsLoggedIn()
|
|
|
|
useTableEditorGotoCommands({ enabled: isLoggedIn })
|
|
useSqlEditorGotoCommands({ enabled: isLoggedIn })
|
|
useDatabaseGotoCommands({ enabled: isLoggedIn })
|
|
useAuthGotoCommands({ enabled: isLoggedIn })
|
|
useAdvisorsGoToCommands({ enabled: isLoggedIn })
|
|
useStorageGotoCommands({ enabled: isLoggedIn })
|
|
useFunctionsGotoCommands({ enabled: isLoggedIn })
|
|
useLogsGotoCommands({ enabled: isLoggedIn })
|
|
useReportsGotoCommands({ enabled: isLoggedIn })
|
|
useApiDocsGotoCommands({ enabled: isLoggedIn })
|
|
useProjectSettingsGotoCommands({ enabled: isLoggedIn })
|
|
useIntegrationsGotoCommands({ enabled: isLoggedIn })
|
|
useBillingGotoCommands({ enabled: isLoggedIn })
|
|
}
|