"use client"; import Link from "next/link"; import { usePathname } from "next/navigation"; import { motion } from "motion/react"; import { LayoutDashboard, FileText, AlertTriangle, Settings, ChevronLeft, ChevronRight } from "lucide-react"; import { cn } from "@/lib/utils"; import { useState } from "react"; const navItems = [ { label: "工作台", href: "/dashboard", icon: LayoutDashboard }, { label: "对账任务", href: "/tasks", icon: FileText }, { label: "异常处理", href: "/exceptions", icon: AlertTriangle }, { label: "规则设置", href: "/settings/rules", icon: Settings }, ]; export function Sidebar() { const pathname = usePathname(); const [collapsed, setCollapsed] = useState(false); return ( ); }