mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-01-26 19:59:12 -06:00
22 lines
472 B
JavaScript
22 lines
472 B
JavaScript
import { useTheme } from "@mui/material/styles";
|
|
import { Typography } from "@mui/material";
|
|
import PropTypes from "prop-types";
|
|
|
|
const FallbackTitle = ({ title }) => {
|
|
const theme = useTheme();
|
|
return (
|
|
<Typography
|
|
alignSelf="center"
|
|
component="h1"
|
|
marginY={theme.spacing(4)}
|
|
color={theme.palette.primary.contrastText}
|
|
>
|
|
{title}
|
|
</Typography>
|
|
);
|
|
};
|
|
FallbackTitle.propTypes = {
|
|
title: PropTypes.string.isRequired,
|
|
};
|
|
export default FallbackTitle;
|