/** * BottomNavigation Component - Mobile navigation bar * * Fixed bottom navigation for mobile devices (< md breakpoint - 768px) * Features: * - 4 navigation items: Home, Team, Challenges, Packs * - Icons from react-icons/io5 * - Active state indicator with gold highlight * - PSG/FIFA themed styling * - Accessible with proper ARIA labels */ import React from 'react'; import { Link, useLocation } from 'react-router-dom'; import { IoHome, IoPeople, IoTrophy, IoGift } from 'react-icons/io5'; import clsx from 'clsx'; interface NavItemConfig { to: string; icon: React.ComponentType<{ className?: string }>; label: string; ariaLabel: string; } export const BottomNavigation: React.FC = () => { const location = useLocation(); const navItems: NavItemConfig[] = [ { to: '/', icon: IoHome, label: 'Accueil', ariaLabel: "Aller à l'accueil", }, { to: '/team', icon: IoPeople, label: 'Team', ariaLabel: "Voir l'équipe", }, { to: '/challenges', icon: IoTrophy, label: 'Défis', ariaLabel: 'Voir les défis', }, { to: '/packs', icon: IoGift, label: 'Packs', ariaLabel: 'Voir les packs', }, ]; const isActive = (path: string) => { return location.pathname === path; }; return ( ); };