import { Box, ListItemButton, ListItemText, Typography } from '@mui/material'; import Link from 'next/link'; type NavItemMobileProps = { toggleDrawer: (toggle: boolean) => void; icon: any; name: string; url: string; totalQuantity: number; } export const NavItemMobile: React.FC = ({ toggleDrawer, icon, name, url, totalQuantity, }) => { return ( {icon} {name} {name === 'Cart' && totalQuantity !== 0 && ( {totalQuantity} )} } /> ); }; type NavItemDesktopProps = { url: string; router: any; name: string; } export const NavItemDesktop: React.FC = ({ url, router, name }) => { return ( {name} ); };