"use client"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { motion } from "framer-motion"; import { Home, FolderOpen, Search, Star, Menu } from "lucide-react"; import { useShell } from "./ShellContext"; /** Barre d'onglets mobile (iOS-like) — masquée ≥ lg. */ export default function MobileTabBar() { const pathname = usePathname(); const { openCommand, setMobileNavOpen } = useShell(); const tabs = [ { key: "home", label: "Accueil", icon: Home, href: "/dashboard", active: pathname === "/dashboard" }, { key: "files", label: "Fichiers", icon: FolderOpen, href: "/dashboard/files", active: pathname.startsWith("/dashboard/files") || pathname.startsWith("/dashboard/folder") }, { key: "search", label: "Rechercher", icon: Search, onClick: () => openCommand(""), active: false }, { key: "fav", label: "Favoris", icon: Star, href: "/dashboard/favorites", active: pathname === "/dashboard/favorites" }, { key: "menu", label: "Menu", icon: Menu, onClick: () => setMobileNavOpen(true), active: false }, ]; return ( ); }