"use client"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { Icon, type IconName } from "../../Icon"; const LINKS: { href: string; label: string; icon: IconName }[] = [ { href: "/konto", label: "Übersicht", icon: "dashboard" }, { href: "/konto/bestellungen", label: "Bestellungen", icon: "box" }, { href: "/konto/kurse", label: "Meine Kurse", icon: "play" }, { href: "/konto/termine", label: "Meine Termine", icon: "calendar" }, { href: "/konto/adressen", label: "Adressen", icon: "truck" }, { href: "/konto/profil", label: "Profil & Sicherheit", icon: "user" }, ]; export function AccountNav() { const path = usePathname(); const active = (href: string) => (href === "/konto" ? path === href : path.startsWith(href) || (href === "/konto/bestellungen" && path.startsWith("/konto/bestellung/"))); return ( ); }