"use client" import Link from "next/link" import { usePathname } from "next/navigation" import { cn } from "@/lib/utils" import { LayoutDashboard, Package, ShoppingCart, Users, Settings } from "lucide-react" const sidebarItems = [ { title: "Panel", href: "/dashboard", icon: LayoutDashboard, }, { title: "Ürünler", href: "/dashboard/products", icon: Package, }, { title: "Siparişler", href: "/dashboard/orders", icon: ShoppingCart, }, { title: "Kullanıcılar", href: "/dashboard/users", icon: Users, }, { title: "Ayarlar", href: "/dashboard/settings", icon: Settings, }, ] interface SidebarProps extends React.HTMLAttributes { } export function Sidebar({ className }: SidebarProps) { const pathname = usePathname() return (

Yönetim

{sidebarItems.map((item) => ( {item.title} ))}
) }