import { Link, Form, useLocation } from "react-router"; import { Calculator, Building2, LayoutDashboard, LogOut, ChevronRight, } from "lucide-react"; import { cn } from "@/lib/utils"; import { Button } from "@/components/ui/button"; interface NavItem { label: string; href: string; icon: React.ReactNode; } const navItems: NavItem[] = [ { label: "Dashboard", href: "/", icon: }, { label: "Mandanten", href: "/companies", icon: }, ]; export function Sidebar({ userName }: { userName?: string | null }) { const location = useLocation(); const pathname = location.pathname; return ( ); }