"use client"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { Shield, Users, ClipboardList, LayoutDashboard, LogOut } from "lucide-react"; import { cn } from "@/lib/utils"; import { removeToken } from "@/lib/auth"; import { useRouter } from "next/navigation"; const navItems = [ { href: "/dashboard", label: "Tableau de bord", icon: LayoutDashboard }, { href: "/clients", label: "Clients", icon: Users }, { href: "/audits", label: "Audits", icon: ClipboardList }, ]; export function Sidebar() { const pathname = usePathname(); const router = useRouter(); function handleLogout() { removeToken(); router.push("/login"); } return ( ); }