adminFront/src/pages/dashboard/Content/Tariffs/CustomHeader.tsx

28 lines
657 B
TypeScript
Raw Normal View History

2023-02-18 14:07:11 +00:00
import { Typography, useTheme } from "@mui/material";
import { ReactNode } from "react";
interface Props {
children: ReactNode;
}
export default function CustomHeader({ children }: Props) {
const theme = useTheme();
return (
<Typography
variant="subtitle1"
sx={{
width: "90%",
height: "60px",
display: "flex",
flexDirection: "column",
justifyContent: "center",
alignItems: "center",
color: theme.palette.secondary.main
}}
>
{children}
</Typography>
);
}