'use client'; import { cn } from "@/lib/utils"; import Link from "next/link"; import { usePathname } from "next/navigation"; export default function Header() { const pathname = usePathname(); const menuItems = [ { name: '特恩(TONE)', href: '/' }, { name: '资源', href: '/resource' }, { name: '博客', href: '/blog' }, { name: '账户', href: '/account' }, ] return (
{pathname === "/" ?
🍭
:
特恩(TONE)
}
{menuItems.slice(1).map((item) => ( {item.name} ))}
) }