'use client'; import Link from 'next/link'; import { usePathname } from 'next/navigation'; import { cn } from '@/lib/utils'; import { LayoutDashboard, UtensilsCrossed, QrCode, ShoppingBag, BarChart3, CreditCard, Settings, Store, ChevronLeft, Menu, LogOut, Sparkles, } from 'lucide-react'; import { useState } from 'react'; const navigation = [ { name: 'Overview', href: '/dashboard/overview', icon: LayoutDashboard }, { name: 'Menu Builder', href: '/dashboard/menu-builder', icon: UtensilsCrossed }, { name: 'QR Codes', href: '/dashboard/qr-manager', icon: QrCode }, { name: 'Orders', href: '/dashboard/orders', icon: ShoppingBag }, { name: 'Analytics', href: '/dashboard/analytics', icon: BarChart3 }, { name: 'Billing', href: '/dashboard/billing', icon: CreditCard }, { name: 'Restaurant', href: '/dashboard/restaurant-setup', icon: Store }, { name: 'Settings', href: '/dashboard/settings', icon: Settings }, ]; export function DashboardSidebar() { const pathname = usePathname(); const [collapsed, setCollapsed] = useState(false); const [mobileOpen, setMobileOpen] = useState(false); return ( <> {/* Mobile menu button */} {/* Mobile overlay */} {mobileOpen && (
setMobileOpen(false)} /> )} {/* Sidebar */} ); }