Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

Notification.tsx 563B

12345678910111213141516171819202122
  1. import { Alert, Snackbar } from '@mui/material';
  2. const Notification = ({ handleCloseNotification, notification, open }) => {
  3. return (
  4. <Snackbar
  5. anchorOrigin={{ vertical: 'top', horizontal: 'center' }}
  6. open={open}
  7. autoHideDuration={3000}
  8. onClose={handleCloseNotification}
  9. >
  10. <Alert
  11. onClose={handleCloseNotification}
  12. severity="success"
  13. sx={{ width: '100%', backgroundColor: 'green', color: 'white' }}
  14. >
  15. {notification}
  16. </Alert>
  17. </Snackbar>
  18. );
  19. };
  20. export default Notification;