'use client'; import * as React from 'react'; import { FileText, Home, MoreHorizontal, Package, Search } from 'lucide-react'; import { Link } from '@/i18n/navigation'; import { cn } from '@/lib/utils'; /** * Navigation mobile. * * Quatre destinations frequentes plus une entree « Plus » qui ouvre la * navigation complete : aucune section n'est inaccessible depuis le mobile, * contrairement a la version precedente qui n'exposait que 5 des 8 entrees. */ interface BottomNavProps { pathname: string; labels: { home: string; bookings: string; documents: string; tracking: string; more: string; }; onMore: () => void; } export function BottomNav({ pathname, labels, onMore }: BottomNavProps) { const items = [ { href: '/dashboard', icon: Home, label: labels.home, exact: true }, { href: '/dashboard/bookings', icon: Package, label: labels.bookings }, { href: '/dashboard/documents', icon: FileText, label: labels.documents }, { href: '/dashboard/track-trace', icon: Search, label: labels.tracking }, ]; const itemClass = (active: boolean) => cn( 'flex min-h-[44px] flex-col items-center justify-center gap-0.5 transition-colors', 'focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-inset', active ? 'text-brand-navy' : 'text-neutral-500 hover:text-brand-navy' ); return ( ); }