"use client" import Link from "next/link" import { usePathname } from "next/navigation" import { cn } from "@/lib/utils" import { LayoutDashboard, Package, ShoppingCart, Settings, Globe, Tags, Users, MessageSquare, History } from "lucide-react" const sidebarItems = [ { title: "Panel", href: "/dashboard", icon: LayoutDashboard, }, { title: "Ürünler", href: "/dashboard/products", icon: Package, }, { title: "Kategoriler", href: "/dashboard/categories", icon: Tags, }, { title: "Siparişler", href: "/dashboard/orders", icon: ShoppingCart, }, { title: "Müşteriler", href: "/dashboard/customers", icon: Users, }, { title: "SMS Gönder", href: "/dashboard/sms", icon: MessageSquare, }, { title: "Ayarlar", href: "/dashboard/settings", icon: Settings, }, { title: "Siteye Dön", href: "/", icon: Globe, }, ] type SidebarProps = React.HTMLAttributes export function Sidebar({ className }: SidebarProps) { const pathname = usePathname() return (

Yönetim

{sidebarItems.filter(i => !i.href.includes('/sms')).map((item) => ( {item.title} ))}

SMS

Yeni SMS Geçmiş
) }