"use client" import Link from "next/link" import { usePathname } from "next/navigation" import { Home, Users, User } from "lucide-react" export function BottomNav() { const pathname = usePathname() // 管理后台不显示底部导航 if (pathname.startsWith("/admin")) return null const navItems = [ { href: "/", icon: Home, label: "首页", id: "home" }, { href: "/match", icon: Users, label: "找伙伴", id: "match" }, { href: "/my", icon: User, label: "我的", id: "my" }, ] const isActive = (href: string) => { if (href === "/") return pathname === "/" return pathname.startsWith(href) } return ( ) }