import { Link, useLocation } from "react-router-dom"; import { Home, Package, FileText, Users, MoreHorizontal, Receipt, BarChart3, BookOpen } from "lucide-react"; import { cn } from "@/lib/utils"; import { useLanguage } from '@/contexts/LanguageContext'; interface NavItem { icon: React.ElementType; label: string; to: string; badge?: number; } export function BottomNavigation() { const { pathname } = useLocation(); const { t } = useLanguage(); const navItems: NavItem[] = [ { icon: Home, label: t('nav.home'), to: "/", badge: undefined }, { icon: Package, label: t('nav.purchase'), to: "/purchase", badge: undefined }, { icon: FileText, label: t('nav.invoice'), to: "/invoice", badge: undefined }, { icon: BarChart3, label: t('nav.stock'), to: "/stock", badge: undefined }, { icon: BookOpen, label: t('nav.ledger'), to: "/ledger", badge: undefined }, ]; return ( ); }