20 lines
352 B
TypeScript
20 lines
352 B
TypeScript
import Typography from "@mui/material/Typography";
|
|
import { Helmet } from "react-helmet-async";
|
|
|
|
interface IProps {
|
|
title: string;
|
|
}
|
|
|
|
const Title = ({ title }: IProps) => (
|
|
<>
|
|
<Helmet>
|
|
<title>Todo | {title}</title>
|
|
</Helmet>
|
|
<Typography component="h1" variant="h5">
|
|
{title}
|
|
</Typography>
|
|
</>
|
|
);
|
|
|
|
export default Title;
|