This repository has been archived on 2023-08-20. You can view files and clone it, but cannot push or open issues or pull requests.
admin-panel/src/common/AppLayout/components/Sidebar/components/Nav/Nav.tsx

21 lines
366 B
TypeScript

import { Route } from './types';
import { List } from '@material-ui/core';
import ListItem from './ListItem';
export interface Props {
routes: Route[];
}
const Nav = ({ routes }: Props) => {
return (
<List>
{routes.map(route => (
<ListItem nestedLevel={1} route={route} key={route.name} />
))}
</List>
);
};
export default Nav;