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

28 lines
508 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 {
2024-05-21 07:41:31 +00:00
children: ReactNode;
2023-02-18 14:07:11 +00:00
}
export default function CustomHeader({ children }: Props) {
2024-05-21 07:41:31 +00:00
const theme = useTheme();
2023-02-18 14:07:11 +00:00
2024-05-21 07:41:31 +00:00
return (
<Typography
variant="subtitle1"
sx={{
width: "90%",
height: "60px",
display: "flex",
flexDirection: "column",
justifyContent: "center",
alignItems: "center",
color: theme.palette.secondary.main,
}}
>
{children}
</Typography>
);
}