frontAnswerer/lib/components/ViewPublicationPage/ApologyPage.tsx

26 lines
564 B
TypeScript
Raw Normal View History

import { Box, Typography } from "@mui/material";
type Props = {
message: string;
};
export const ApologyPage = ({ message }: Props) => {
return (
<Box
sx={{
display: "flex",
alignItems: "center",
justifyContent: "center",
height: "100%",
}}
>
<Typography
sx={{
textAlign: "center"
}}
>{message || "Что-то пошло не так"}</Typography>
</Box>
);
};