Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
File size: 611 Bytes
9cd0edd e7abd9e 9cd0edd e7abd9e 9cd0edd |
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 26 27 28 29 30 |
import React from "react";
import { Box, Typography } from "@mui/material";
const PageHeader = ({ title, subtitle }) => {
return (
<Box
sx={{
display: "flex",
flexDirection: "column",
alignItems: "center",
textAlign: "center",
mb: 6,
mt: 6,
gap: 2,
}}
>
<Typography fontWeight="bold" variant="h3" component="h1">
{title}
</Typography>
{subtitle && (
<Typography variant="h6" color="text.secondary">
{subtitle}
</Typography>
)}
</Box>
);
};
export default PageHeader;
|