"use client"; import { BarChart3, Building2, History, LayoutGrid, Network, Upload, Users, X } from "lucide-react"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { useEffect } from "react"; const NAV_ITEMS = [ { href: "/", label: "Übersicht", icon: LayoutGrid }, { href: "/employees", label: "Mitarbeiter:innen", icon: Users }, { href: "/orgchart", label: "Organigramm", icon: Network }, { href: "/positions", label: "Positionen", icon: Building2 }, { href: "/reports", label: "Berichte", icon: BarChart3 }, { href: "/audit", label: "Audit-Log", icon: History }, { href: "/import", label: "Import", icon: Upload }, ] as const; export function isActiveRoute(pathname: string, href: string): boolean { return href === "/" ? pathname === "/" : pathname.startsWith(href); } // Permanent rail from lg up, slide-in drawer below it. Same markup either // way — the breakpoint only changes how the