'use client'; import { BarChart3, Globe2, Map, Scale, Search } from 'lucide-react'; import Link from 'next/link'; import { usePathname } from 'next/navigation'; import { t } from '@/i18n'; import { cn } from '@/lib/cn'; import { routes } from '@/lib/site'; import { isFullBleed } from './main-frame'; import { useOpenSearch } from './search-context'; /** * Fixed bottom tab bar (< md): Explore · Countries · Compare · Rank · Search. Safe-area padding; the body * reserves space (`pb-[calc(56px+env(safe-area-inset-bottom))]`) so it never covers the footer. Hidden on the * full-viewport explorers, which carry their own bottom controls. */ export function MobileTabBar() { const pathname = usePathname(); const openSearch = useOpenSearch(); if (isFullBleed(pathname)) return null; const tabs = [ { href: routes.explore(), label: t('nav.explore'), Icon: Map }, { href: routes.countries(), label: t('nav.countries'), Icon: Globe2 }, { href: routes.compare(), label: t('nav.compare'), Icon: Scale }, { href: routes.rankings(), label: t('nav.rank'), Icon: BarChart3 }, ]; return ( ); }