"use client" import Link from "next/link" import { usePathname } from "next/navigation" import { Home, List, User } from "lucide-react" function PlanetIcon({ className }: { className?: string }) { return ( ) } export function BottomNav() { const pathname = usePathname() // 在文档页面、管理后台、阅读页面和关于页面不显示底部导航 if ( pathname.startsWith("/documentation") || pathname.startsWith("/admin") || pathname.startsWith("/read") || pathname.startsWith("/about") ) { return null } const navItems = [ { href: "/", icon: Home, label: "首页" }, { href: "/chapters", icon: List, label: "目录" }, { href: "/match", icon: PlanetIcon, label: "匹配", isCenter: true }, { href: "/my", icon: User, label: "我的" }, ] return ( <> {navItems.map((item, index) => { const isActive = pathname === item.href const Icon = item.icon // 中间的匹配按钮特殊处理 - 使用小星球图标 if (item.isCenter) { return ( {item.label} ) } return ( {item.label} ) })} > ) }