frontAnswerer/lib/components/ViewPublicationPage/ApologyPage.tsx
Nastya 31c4db160e
Some checks failed
Deploy / CreateImage (push) Failing after 3m26s
Deploy / DeployService (push) Failing after 24s
добавление переводов в зависимости юзеров
2025-07-01 03:03:17 +03:00

37 lines
906 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { Box, Typography } from "@mui/material";
import { FallbackProps } from "react-error-boundary";
import { useTranslation } from "react-i18next";
type Props = Partial<FallbackProps>;
export const ApologyPage = ({ error }: Props) => {
let message = error.message || error.response?.data;
console.log("message");
console.log(message.toLowerCase());
const { t } = useTranslation();
console.log("t");
console.log(t(message.toLowerCase()));
return (
<Box
sx={{
display: "flex",
alignItems: "center",
justifyContent: "center",
height: "100%",
backgroundColor: "#F2F3F7",
}}
>
<Typography
sx={{
textAlign: "center",
color: "text.primary",
}}
>
ошибка
{/* {t(message.toLowerCase())} */}
</Typography>
</Box>
);
};