Loading data from network...
import { Link, useLocation } from 'react-router-dom'
export default function FooterNav() {
const { pathname } = useLocation()
const navItems = [
{ label: 'Home', to: '/dashboard', icon: (
<svg className="h-5 w-5" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.6">
<path d="M3 11l9-7 9 7" />
<path d="M5 10v9a1 1 0 0 0 1 1h4v-6h4v6h4a1 1 0 0 0 1-1v-9" />
</svg>
) },
{ label: 'Wallet', to: '/profile', icon: (
<svg className="h-5 w-5" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.6">
<path d="M4 7h16a2 2 0 0 1 2 2v8a3 3 0 0 1-3 3H5a3 3 0 0 1-3-3V9a2 2 0 0 1 2-2Z" />
<path d="M9 7V5a3 3 0 0 1 6 0v2" />
</svg>
) },
{ label: 'Circles', to: '/circles', icon: (
<svg className="h-5 w-5" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.6">
<path d="M8 12l2 2 4-4" />
<path d="M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z" />
</svg>
) },
{ label: 'Account', to: '/profile', icon: (
<svg className="h-5 w-5" viewBox="0 0 24 24" fill="none" stroke="currentColor" strokeWidth="1.6">
<path d="M12 12a4 4 0 1 0-4-4 4 4 0 0 0 4 4Z" />
<path d="M4 20a8 8 0 0 1 16 0" />
</svg>
) }
]
return (
<div className="fixed bottom-4 left-1/2 z-40 flex w-[92%] max-w-md -translate-x-1/2 items-center justify-between rounded-full border border-ink/10 bg-white/95 px-4 py-3 text-[11px] font-semibold text-ink/70 shadow-xl lg:hidden">
{navItems.map((item) => (
<Link
key={item.label}
to={item.to}
className={`flex flex-col items-center gap-1 ${pathname === item.to ? 'text-ocean' : ''}`}
>
{item.icon}
{item.label}
</Link>
))}
</div>
)
}