"use client"; import { clsx } from "clsx"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { HAUPTNAVIGATION, istAktiv, NEBENNAVIGATION, type NavPunkt } from "./nav-punkte"; /** * Navigation der Seitenleiste. Client-Komponente, weil ein Layout den aktuellen Pfad * nicht kennt: Ohne `aktiverPfad` nimmt sie ihn aus usePathname(); Seiten oder Tests * können ihn ausdrücklich vorgeben. */ export function Navigation({ aktiverPfad }: { aktiverPfad?: string }) { const routerPfad = usePathname(); const pfad = aktiverPfad ?? routerPfad ?? "/"; return ( ); } function NavListe({ punkte, pfad }: { punkte: NavPunkt[]; pfad: string }) { return (