import Link from "next/link" import { usePathname } from "next/navigation" import { cn } from "@/lib/utils" import { Button } from "@/components/ui/button" import { ScrollArea } from "@/components/ui/scroll-area" import { LayoutDashboard, Settings, Menu as MenuIcon, Database } from "lucide-react" const sidebarNavItems = [ { title: "控制台", href: "/admin", icon: LayoutDashboard, }, { title: "站点设置", href: "/admin/site", icon: Settings, }, { title: "导航管理", href: "/admin/navigation", icon: MenuIcon, }, { title: "资源管理", href: "/admin/resources", icon: Database, }, ] interface SideNavProps extends React.HTMLAttributes {} export function SideNav({ className, ...props }: SideNavProps) { const pathname = usePathname() return (

管理菜单

{sidebarNavItems.map((item) => ( ))}
) }