Created the LinkItem.jsx

This commit is contained in:
Mathias Wagner 2023-07-08 22:14:13 +02:00
parent eb54c4ad93
commit b5dfe1e34a
Signed by: Mathias
GPG Key ID: B8DC354B0A1F5B44

View File

@ -0,0 +1,12 @@
import {Link, Typography} from "@mui/material";
export const LinkItem = ({route, onClick}) => {
return (
<Link underline="none" sx={{cursor: "pointer"}} onClick={onClick}>
<Typography variant="h5" sx={{mx: 2}} fontWeight={600}
color={route.path === window.location.pathname ? "primary.main" : "text.primary"}>
{route.name}
</Typography>
</Link>
)
}