Modal.js 264 B

123456789101112
  1. import Alert from '@mui/material/Alert';
  2. export const Modal = ({text, propDisplay}) => {
  3. return <Alert
  4. severity="error"
  5. sx={{
  6. display: propDisplay,
  7. }}
  8. >
  9. {text}
  10. </Alert>
  11. }