import PropTypes from "prop-types"; import { NavLink as RouterLink } from "react-router-dom"; // @mui import { Box, List, ListItemText, Typography } from "@mui/material"; // import { StyledNavItem, StyledNavItemIcon } from "./styles"; // ---------------------------------------------------------------------- NavSection.propTypes = { data: PropTypes.array, }; export default function NavSection({ data = [], collspan, ...other }) { return ( {data.map((item) => { if (item.children) { return ( {item.title} {item.children.map((item) => ( ))} ); } else { return ; } })} ); } // ---------------------------------------------------------------------- NavItem.propTypes = { item: PropTypes.object, }; function NavItem({ item, collspan }) { const { title, path, icon, info } = item; return ( {icon && icon} {info && info} ); }