"use client"; import { FC } from "react"; import { Box, Typography, ListItemButton, ListItemIcon, ListItemText, ListItemSecondaryAction, } from "@mui/material"; import Link from "next/link"; import Image from "next/image"; import { fonts } from "../styles/theme"; const openWidth = 270; const closedWidth = 100; export const SidebarItem: FC = ({ name, href, Icon, iconSize, inset = false, selected = false, open = true, badge, target = "_self", }: any) => ( {iconSize > 0 ? ( ) : ( )} {open && ( {name} } /> )} {badge && badge > 0 ? ( {badge} ) : null} );