import BeenhereIcon from "@mui/icons-material/Beenhere"; import {Box, Typography} from "@mui/material"; import {toast} from "react-toastify"; const SuccessNotification = (pushToastList, notificationType, t, status) => { const toastId = toast( () => ( <> {t("notifications.success")} ({t("notifications.code")}:{" "} {status}) {t("notifications.success_static_text")} ), { containerId: 'validation', autoClose: 3000, hideProgressBar: true, pauseOnHover: true, closeOnClick: false, draggable: true, } ); pushToastList(notificationType, toastId); }; export default SuccessNotification;