'use client'; import Link from 'next/link'; import { useState } from 'react'; import { usePathname } from 'next/navigation'; import { Menu, X, Building2, ArrowRight } from 'lucide-react'; import { cn } from '@/lib/utils'; interface NavLink { href: string; label: string; } const LINKS: NavLink[] = [ { href: '/', label: '首页' }, { href: '/about', label: '关于我们' }, { href: '/products', label: '产品方案' }, { href: '/news', label: '新闻资讯' }, { href: '/team', label: '团队介绍' }, { href: '/contact', label: '联系我们' }, ]; export function Header({ siteName }: { siteName: string }) { const pathname = usePathname(); const [open, setOpen] = useState(false); return (
{siteName} 免费试用
{open && (
)}
); }