mirror of
https://github.com/supabase/supabase.git
synced 2026-10-06 18:05:11 +03:00
31 lines
886 B
TypeScript
31 lines
886 B
TypeScript
import { IS_PLATFORM } from 'lib/constants'
|
|
import { ProductMenuGroup } from 'components/ui/ProductMenu/ProductMenu.types'
|
|
|
|
export const generateAuthMenu = (ref: string): ProductMenuGroup[] => {
|
|
return [
|
|
{
|
|
title: 'General',
|
|
items: [
|
|
{ name: 'Users', key: 'users', url: `/project/${ref}/auth/users`, items: [] },
|
|
{ name: 'Policies', key: 'policies', url: `/project/${ref}/auth/policies`, items: [] },
|
|
{ name: 'Templates', key: 'templates', url: `/project/${ref}/auth/templates`, items: [] },
|
|
],
|
|
},
|
|
...(IS_PLATFORM
|
|
? [
|
|
{
|
|
title: 'Configuration',
|
|
items: [
|
|
{
|
|
name: 'Settings',
|
|
key: 'settings',
|
|
url: `/project/${ref}/auth/settings`,
|
|
items: [],
|
|
},
|
|
],
|
|
},
|
|
]
|
|
: []),
|
|
]
|
|
}
|