import { Link, Form, useLocation } from "react-router"; import { Calculator, Building2, LayoutDashboard, LogOut, ChevronRight } from "lucide-react"; import { cn } from "@/lib/utils"; interface NavItem { label: string; href: string; icon: React.ReactNode; } const navItems: NavItem[] = [ { label: "Dashboard", href: "/", icon: }, { label: "Mandanten", href: "/companies", icon: }, ]; function getInitials(name?: string | null): string { if (!name) return "?"; return name.split(" ").map((n) => n[0]).join("").toUpperCase().slice(0, 2); } export function Sidebar({ userName }: { userName?: string | null }) { const location = useLocation(); const pathname = location.pathname; return ( ); }