"use client"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { TaijiIcon } from "@/components/svg/taiji"; import { ModeToggle } from "@/components/mode-toggle"; import { SITE_WIDTH_INNER } from "@/components/layout/site-width"; const NAV_ITEMS = [ { href: "/learn", label: "易经学习" }, { href: "/liuyao", label: "六爻算卦" }, { href: "/bazi", label: "生辰八字" }, { href: "/combined", label: "综合测算" }, ]; function NavLink({ href, label }: { href: string; label: string }) { const pathname = usePathname(); const active = href === "/" ? pathname === "/" : pathname === href || pathname.startsWith(`${href}/`); return ( {label} ); } export default function Header() { return (
知命阁
); }