feat: cargo project at root

This commit is contained in:
binarybaron 2024-08-08 00:49:04 +02:00
parent aa0c0623ca
commit 709a2820c4
No known key found for this signature in database
GPG key ID: 99B75D3E1476A26E
313 changed files with 1 additions and 740 deletions

View file

@ -0,0 +1,22 @@
import { ReactNode } from 'react';
import { useNavigate } from 'react-router-dom';
import { ListItem, ListItemIcon, ListItemText } from '@material-ui/core';
export default function RouteListItemIconButton({
name,
route,
children,
}: {
name: string;
route: string;
children: ReactNode;
}) {
const navigate = useNavigate();
return (
<ListItem button onClick={() => navigate(route)} key={name}>
<ListItemIcon>{children}</ListItemIcon>
<ListItemText primary={name} />
</ListItem>
);
}