import type { ShootType } from '../content/types.ts'; import type { NavItem } from '../navigation.ts'; import { shootPagePath } from './shootPages.ts'; // The submenu items of the shoot types, one per shoot in the given order: // the label is the shoot name, the target its page (FR-ST-10, BR-NAV-10) export function shootNavItems(shoots: readonly ShootType[]): NavItem[] { return shoots.map((shoot) => ({ to: shootPagePath(shoot.id), label: shoot.name, })); }