mirror of
https://github.com/supabase/supabase.git
synced 2026-10-08 19:05:06 +03:00
31 lines
1.1 KiB
TypeScript
31 lines
1.1 KiB
TypeScript
import { LOG_TYPE_LABEL_MAPPING } from 'components/interfaces/Settings/Logs'
|
|
import { ProductMenuGroup } from 'components/ui/ProductMenu/ProductMenu.types'
|
|
|
|
export const generateSettingsMenu = (ref: string): ProductMenuGroup[] => {
|
|
|
|
return [
|
|
{
|
|
title: 'Project settings',
|
|
items: [
|
|
{ name: 'General', key: 'general', url: `/project/${ref}/settings/general`, items: [] },
|
|
{ name: 'Database', key: 'database', url: `/project/${ref}/settings/database`, items: [] },
|
|
{ name: 'API', key: 'api', url: `/project/${ref}/settings/api`, items: [] },
|
|
{ name: 'Authentication', key: 'auth', url: `/project/${ref}/auth/settings`, items: [] },
|
|
// TODO(thebengeu): Uncomment once all tenants migrated to multitenant storage API.
|
|
// {
|
|
// name: 'Storage',
|
|
// key: 'storage',
|
|
// url: `/project/${ref}/storage/settings`,
|
|
// items: [],
|
|
// },
|
|
{
|
|
name: 'Billing & Usage',
|
|
key: 'billing',
|
|
url: `/project/${ref}/settings/billing`,
|
|
items: [],
|
|
},
|
|
],
|
|
},
|
|
]
|
|
}
|