'use client'; import Link from 'next/link'; import { usePathname } from 'next/navigation'; import { Home, Briefcase, Package, FileText, User } from 'lucide-react'; import { motion } from 'framer-motion'; import { cn } from '@/lib/utils'; const tabs = [ { id: 'home', label: '首页', href: '/', icon: Home }, { id: 'services', label: '服务', href: '/#services', icon: Briefcase }, { id: 'products', label: '产品', href: '/#products', icon: Package }, { id: 'news', label: '新闻', href: '/#news', icon: FileText }, { id: 'contact', label: '联系', href: '/#contact', icon: User }, ]; export function MobileTabBar() { const pathname = usePathname(); const isActive = (href: string) => { if (href === '/') { return pathname === '/'; } const basePath = href.split('#')[0] || href; return pathname.startsWith(basePath); }; return ( ); }