diff --git a/src/components/MobileBottomNav.tsx b/src/components/MobileBottomNav.tsx index 1674718..39efe83 100644 --- a/src/components/MobileBottomNav.tsx +++ b/src/components/MobileBottomNav.tsx @@ -1,11 +1,13 @@ import { Home, Package, ShoppingCart } from 'lucide-react'; import { Link, useLocation } from 'react-router-dom'; import { useCart } from '@/context/CartContext'; +import { useIsMobile } from '@/hooks/use-mobile'; import { cn } from '@/lib/utils'; export function MobileBottomNav() { const location = useLocation(); const { items } = useCart(); + const isMobile = useIsMobile(); const cartCount = items.reduce((sum, item) => sum + item.quantity, 0); const navItems = [ @@ -14,8 +16,10 @@ export function MobileBottomNav() { { to: '#cart', icon: ShoppingCart, label: 'Cart', badge: cartCount }, ]; + if (!isMobile) return null; + return ( -