'use client'; import { Box, List, ListItemButton, ListItemText } from '@mui/material'; import { usePathname } from 'next/navigation'; import { IconCard, IconPage, IconProducts, IconSettings } from '@/components/common/Icons'; const menuItems = [ { value: '', label: 'Mahsulotlar', icon: IconProducts }, { value: '/user-data', label: "Ma'lumotlarim", icon: IconPage }, // { value: '/id-and-address', label: "ID / Adres", icon: IconCard }, { value: '/settings', label: "Sozlamalar", icon: IconSettings }, ]; export function ISidebar({ locale }: { locale: string }) { const pathname = usePathname(); return ( // {/**/} {menuItems.map(item => ( {!!item.icon && } ))} ); }