"use client" import Link from "next/link" import { usePathname } from "next/navigation" import { Home, Scroll, Backpack, Sword, Shield } from "lucide-react" export function MobileNav() { const pathname = usePathname() const navItems = [ { name: "Home", href: "/", icon: , }, { name: "Quests", href: "/quests", icon: , }, { name: "Inventory", href: "/inventory", icon: , }, { name: "Combat", href: "/combat", icon: , }, { name: "Stats", href: "/stats", icon: , }, ] return (
{navItems.map((item) => { const isActive = pathname === item.href return (
{item.icon} {item.name}
) })}
) }