"use client"; import Link from "next/link"; import { usePathname } from "next/navigation"; const TABS = [ { href: "/", label: "Aujourd'hui", icon: (active: boolean) => ( ), }, { href: "/levels", label: "Entraînement", icon: (active: boolean) => ( ), }, { href: "/stats", label: "Stats", icon: (active: boolean) => ( ), }, { href: "/settings", label: "Réglages", icon: (active: boolean) => ( ), }, ]; export default function BottomNav() { const pathname = usePathname(); function isActive(href: string) { if (href === "/") return pathname === "/"; if (href === "/levels") return pathname.includes("/levels") || pathname.includes("/level/"); return pathname.startsWith(href); } return ( ); }