import { useRouter } from 'next/router'; import Link from 'next/link'; import { GlassSurface } from './ui'; import { VOCAB } from '../lib/collection-vocabulary.js'; export default function MobileNavigation({ onMenuOpen }) { const router = useRouter(); // Bottom bar — dashboard-home-realignment (2026-08-15). Primary hub // is Dashboard only; Collection / Scanner / Decks are siblings. // Lists + catalog + community live in the drawer via More. const navigationItems = [ { name: VOCAB.MY_COLLECTION, href: '/my-cards', icon: 'collection', active: router.pathname === '/my-cards', }, { name: 'Scanner', href: '/scanner', icon: 'scanner', active: router.pathname === '/scanner', }, { name: 'Dashboard', href: '/dashboard', icon: 'dashboard', active: router.pathname === '/dashboard', isPrimary: true, }, { name: 'Decks', href: '/decks', icon: 'decks', active: router.pathname === '/decks' || router.pathname.startsWith('/deck/'), }, { name: 'More', href: '#', icon: 'more', onClick: onMenuOpen, active: false, }, ]; const getIcon = (iconName, isActive = false, isPrimary = false) => { const iconClass = isPrimary ? 'h-7 w-7' : 'h-6 w-6'; const strokeWidth = isActive ? 2.5 : 2; const icons = { collection: ( ), scanner: ( ), cards: ( ), decks: ( ), dashboard: ( ), more: ( ), }; return icons[iconName] || icons.dashboard; }; return (