frontAnswerer/lib/components/ViewPublicationPage/ApologyPage.tsx

30 lines
673 B
TypeScript
Raw Normal View History

2024-04-03 13:00:54 +00:00
import { Box, Typography } from "@mui/material";
import { FallbackProps } from "react-error-boundary";
type Props = Partial<FallbackProps>;
export const ApologyPage = ({ error }: Props) => {
2025-02-23 21:46:51 +00:00
let message = error?.message ?? error.response?.data ?? "Something went wrong";
2024-04-03 13:00:54 +00:00
2024-05-31 16:41:18 +00:00
return (
<Box
sx={{
display: "flex",
alignItems: "center",
justifyContent: "center",
height: "100%",
backgroundColor: "#F2F3F7",
}}
>
<Typography
sx={{
textAlign: "center",
color: "text.primary",
}}
>
{message}
</Typography>
</Box>
);
2024-04-03 13:00:54 +00:00
};