'use client'; import Link from 'next/link'; import { usePathname } from 'next/navigation'; import { Home, Search, Plus, ShoppingCart, User, Send, Grid3x3 } from 'lucide-react'; import { useAuth } from '@/components/auth-provider'; /** * MobileNav — WhatsApp Liquid Glass floating island bottom navigation. * * BUYER nav: Messenger | Shorts | [Home] | Category | Cart * (Notification + Account icons are in the HEADER, not the nav) * * SELLER nav: Home | Shorts | [+] | Cart | Account * (Messenger + Notification icons are in the HEADER, not the nav) * (Account in nav = /profile personal profile; Account in header = /seller-dashboard store) */ export function MobileNav() { const pathname = usePathname(); const { cartCount, user, isSeller, unreadMessages } = useAuth(); const navItems = isSeller ? [ { href: '/', label: 'Home', icon: Home }, { href: '/shorts', label: 'Shorts', icon: Grid3x3 }, { href: '/create', label: 'Add', icon: Plus, center: true }, { href: '/cart', label: 'Cart', icon: ShoppingCart, showBadge: true }, { href: '/profile', label: 'Account', icon: User, showAvatar: true }, ] : [ { href: '/messenger', label: 'Messages', icon: Send }, { href: '/shorts', label: 'Shorts', icon: Grid3x3 }, { href: '/', label: 'Home', icon: Home, center: true }, { href: '/categories', label: 'Category', icon: Search }, { href: '/cart', label: 'Cart', icon: ShoppingCart, showBadge: true }, ]; return (