import { NavLink, useLocation } from 'react-router-dom' import { useProgramScope } from '../context/ProgramScopeContext.jsx' /** * Bereichs-Subnav (Mitai Settings/Admin-Shell). * * @param {{ * modeLabel: string, * items: { key: string, to: string, label: string, labelFor?: (ctx: object) => string }[], * resolveActiveKey?: (pathname: string) => string | null, * showScope?: boolean, * scopeMutedLabel?: string, * }} props */ export function ModeAreaNav({ modeLabel, items, resolveActiveKey, showScope = false, scopeMutedLabel = 'Portfolio', }) { const location = useLocation() const { initiativeId, initiativeTitle, hrefWithScope } = useProgramScope() const activeKey = resolveActiveKey?.(location.pathname) return ( ) }