"use client" import { useState } from "react" import Link from "next/link" import { usePathname } from "next/navigation" import { cn } from "@/lib/utils" import { Button } from "@/components/ui/button" import { Card } from "@/components/ui/card" import { FileText, Upload, Settings, BarChart3, Home, Menu, X } from "lucide-react" const navigation = [ { name: "首頁", href: "/", icon: Home }, { name: "上傳文件", href: "/upload", icon: Upload }, { name: "評分結果", href: "/results", icon: BarChart3 }, { name: "歷史記錄", href: "/history", icon: FileText }, { name: "評分標準", href: "/criteria", icon: Settings }, ] export function Sidebar() { const [isOpen, setIsOpen] = useState(false) const pathname = usePathname() return ( <> {/* Mobile menu button */} {/* Sidebar */}
{/* Logo */}

AI 評審系統

{/* Navigation */} {/* Footer */}

需要幫助?

查看使用說明或聯繫技術支援

{/* Overlay for mobile */} {isOpen && (
setIsOpen(false)} /> )} ) }