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>
    );
};
