import DangerousIcon from "@mui/icons-material/Dangerous"; import {Box, Typography} from "@mui/material"; import {toast} from "react-toastify"; const ErrorNotification = (directionApp, t, status, message) => { toast( () => ( <> {t("notifications.error")} ({t("notifications.code")}: {status}) {message || t("notifications.error_static_text")} ), { position: directionApp === "ltr" ? "top-left" : "top-right", autoClose: false, closeOnClick: false, draggable: false, } ); }; export default ErrorNotification;