import * as React from "react"; import Snackbar from "@mui/material/Snackbar"; import IconButton from "@mui/material/IconButton"; import CloseIcon from "@mui/icons-material/Close"; import { useContext } from "react"; import { DataContext } from "../context/Context"; import MuiAlert, { AlertProps } from "@mui/material/Alert"; import { useJsonForms } from "@jsonforms/react"; import { inputProps } from "../interface/inputfieldProps"; const WarningIcon = (props) => { return ( ); }; function Notify(props:inputProps) { const {path} = props; const ctx = useJsonForms(); const { setNotify, openNotify, theme,notificationAutoHideDuration } = useContext(DataContext); const handleClose = ( event: React.SyntheticEvent | Event, reason?: string ) => { if(reason === "clickaway") return; setNotify({ Fail: false, Success: false, Info: false }); }; const Alert = React.forwardRef(function Alert( props, ref ) { return ; }); const action = ( ); return (
{openNotify.SuccessMessage} } > {openNotify.FailMessage} {openNotify.InfoMessage}
); } export default Notify;