"use client"; import { Book1Outlined, Folder1Outlined, PlusOutlined, } from "@lineiconshq/free-icons"; import { Lineicons } from "@lineiconshq/react-lineicons"; import Link from "next/link"; import { usePathname } from "next/navigation"; const navItems = [ { href: "/dashboard", label: "Tutoriels", icon: Book1Outlined, exact: true, }, { href: "/dashboard/nouveau", label: "Nouveau", icon: PlusOutlined, }, { href: "/dashboard/categories", label: "Catégories", icon: Folder1Outlined, }, ]; export function DashboardSidebar() { const pathname = usePathname(); const isActive = (href: string, exact?: boolean) => { if (exact) return pathname === href; return pathname.startsWith(href); }; return ( ); }