text: import React from "react";
  import Snackbar from "@mui/material/Snackbar";
  import IconButton from "@mui/material/IconButton";
  import CloseIcon from "@mui/icons-material/Close";
  
  export default function SimpleSnackbar({ message, open, setOpen }) {
    const handleClose = (event, reason) => {
      if (reason === "clickaway") {
        return;
      }
  
      setOpen(false);
    };
  
    const action = (
      <React.Fragment>
        <IconButton size="small" aria-label="close" onClick={handleClose}>
          <CloseIcon fontSize="small" />
        </IconButton>
      </React.Fragment>
    );
  
    return (
      <div>
        <Snackbar
          open={open}
          autoHideDuration={4000}
          onClose={handleClose}
          message={message}
          action={action}
          style={{
            backgroundColor: "black",
          }}
        />
      </div>
    );
  }
  