'use client'; import Link from 'next/link'; import { usePathname } from 'next/navigation'; import { Building2, Clock3 } from 'lucide-react'; import { cn } from '@/lib/utils'; const TASK_MANAGEMENT_TABS = [ { label: 'Office', href: '/office', icon: Building2, match: (pathname: string) => pathname === '/office' || pathname.startsWith('/office/'), }, { label: '定时任务', href: '/cron', icon: Clock3, match: (pathname: string) => pathname === '/cron' || pathname.startsWith('/cron/'), }, ] as const; export function TaskManagementTabs() { const pathname = usePathname(); return (