Files
Checkmate/client/src/Components/GenericFallback/NetworkError.jsx
T

23 lines
527 B
React
Raw Normal View History

import { Typography } from "@mui/material";
import { useTheme } from "@emotion/react";
2025-06-07 19:30:55 +02:00
import { useTranslation } from "react-i18next";
const NetworkError = () => {
const theme = useTheme();
2025-06-07 19:30:55 +02:00
const { t } = useTranslation();
return (
<>
<Typography
variant="h1"
marginY={theme.spacing(4)}
color={theme.palette.primary.contrastTextTertiary}
>
2025-06-07 19:30:55 +02:00
{t("common.toasts.networkError")}
</Typography>
2025-06-07 19:30:55 +02:00
<Typography>{t("common.toasts.checkConnection")}</Typography>
</>
);
};
export default NetworkError;