mirror of
https://github.com/supabase/supabase.git
synced 2026-10-17 15:19:08 +03:00
44 lines
1.0 KiB
TypeScript
44 lines
1.0 KiB
TypeScript
import type { ProductMenuGroup } from 'components/ui/ProductMenu/ProductMenu.types'
|
|
import type { Project } from 'data/projects/project-detail-query'
|
|
|
|
export const generateReplicationMenu = (project: Project): ProductMenuGroup[] => {
|
|
const ref = project?.ref ?? 'default'
|
|
|
|
return [
|
|
{
|
|
title: 'Replication Status',
|
|
items: [
|
|
{
|
|
name: 'Status',
|
|
key: 'replication',
|
|
url: `/project/${ref}/replication`,
|
|
items: [],
|
|
},
|
|
],
|
|
},
|
|
{
|
|
title: 'Configuration',
|
|
items: [
|
|
{
|
|
name: 'Publications',
|
|
key: 'publications',
|
|
url: `/project/${ref}/replication/publications`,
|
|
items: [],
|
|
},
|
|
{
|
|
name: 'Sinks',
|
|
key: 'sinks',
|
|
url: `/project/${ref}/replication/sinks`,
|
|
items: [],
|
|
},
|
|
{
|
|
name: 'Pipelines',
|
|
key: 'pipelines',
|
|
url: `/project/${ref}/replication/pipelines`,
|
|
items: [],
|
|
},
|
|
],
|
|
},
|
|
]
|
|
}
|