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>
24 lines
544 B
TypeScript
24 lines
544 B
TypeScript
import type { ProductMenuGroup } from '@/components/ui/ProductMenu/ProductMenu.types'
|
|
|
|
export const generateBranchMenu = (ref: string): ProductMenuGroup[] => {
|
|
return [
|
|
{
|
|
title: 'Manage',
|
|
items: [
|
|
{
|
|
name: 'Branches',
|
|
key: 'branches',
|
|
url: `/project/${ref}/branches`,
|
|
items: [],
|
|
},
|
|
{
|
|
name: 'Merge requests',
|
|
key: 'merge-requests',
|
|
url: `/project/${ref}/branches/merge-requests`,
|
|
items: [],
|
|
},
|
|
],
|
|
},
|
|
]
|
|
}
|