File size: 561 Bytes
1e92f2d |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 |
import { Typography, Box, useTheme } from "@mui/material";
import { tokens } from "../theme";
const Header = ({ title, subtitle }) => {
const theme = useTheme();
const colors = tokens(theme.palette.mode);
return (
<Box mb="30px">
<Typography
variant="h2"
color={colors.grey[100]}
fontWeight="bold"
sx={{ m: "0 0 5px 0" }}
>
{title}
</Typography>
<Typography variant="h5" color={colors.greenAccent[400]}>
{subtitle}
</Typography>
</Box>
);
};
export default Header;
|