import React, { Dispatch, SetStateAction } from 'react' import Snackbar from '@mui/material/Snackbar' import MuiAlert, { AlertProps } from '@mui/material/Alert' import Slide, { SlideProps } from '@mui/material/Slide' const Alert = React.forwardRef(function Alert( props, ref ) { return }) const Transition = (props: SlideProps) => { return } export enum AlertSeverityType { Success = 'success', Warning = 'warning', Info = 'info', Error = 'error' } type BootstrapSnackbarProps = { open: boolean setOpen: Dispatch> message: string severity: AlertSeverityType } const BootstrapSnackbar = ({ open, setOpen, message, severity }: BootstrapSnackbarProps) => { const handleClose = ( event: React.SyntheticEvent | Event, reason?: string ) => { if (reason === 'clickaway') { return } setOpen(false) } return ( {message} ) } export default BootstrapSnackbar