Files
Saxon FletcherandJoshen Lim 1cc7124213 Branches page (#37080)
* move branches to page layout

* changes

* more clean up

* use branch status

* clean up

* gitless flag

* tidy up

* revert generate

* Couple of fixes

* Refactor some stuff, standardize copy, add missing loading state

* Smol refactor

* Replace ephemeral with preview for more consistant language

* Few more fixes

* Refactor Overview.tsx to use DropdownMenuItemTooltip component

* Final round of refactors after code review

---------

Co-authored-by: Joshen Lim <joshenlimek@gmail.com>
2025-07-14 17:41:06 +10:00

24 lines
542 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: [],
},
],
},
]
}