'use client'; import React from 'react'; interface NavItem { label: string; icon: string; active?: boolean; href: string; } const navItems: NavItem[] = [ { label: 'Dashboard', icon: '📊', href: '/dashboard' }, { label: 'Products', icon: '📦', active: true, href: '/dashboard/products' }, { label: 'Categories', icon: '🏷️', href: '/dashboard/categories' }, { label: 'Subcategories', icon: '🔖', href: '/dashboard/subcategories' }, { label: 'Suppliers', icon: '🚚', href: '/dashboard/suppliers' }, { label: 'Settings', icon: '⚙️', href: '/dashboard/settings' }, ]; interface SidebarProps { isOpen: boolean; onClose: () => void; } export default function Sidebar({ isOpen, onClose }: SidebarProps) { return ( <> {/* Mobile overlay */} {isOpen && (
)} {/* Sidebar */} > ); }