UNPKG

flowviz

Version:

A framework which provides seamless integration with other phylogenetic tools and frameworks, while allowing workflow scheduling and execution, through the Apache Airflow workflow system.

25 lines (20 loc) 617 B
import * as React from "react"; import { Alert, IconButton } from "@mui/material"; import CloseIcon from "@mui/icons-material/Close"; import Snackbar from "@mui/material/Snackbar"; export default function InfoBar({ type, text }) { const [open, setOpen] = React.useState(true); const handleClose = (event, reason) => { if (reason === "clickaway") { return; } setOpen(false); }; return ( <Snackbar open={open} autoHideDuration={5000} onClose={handleClose}> <Alert onClose={handleClose} severity={type} sx={{ width: "100%" }}> {text} </Alert> </Snackbar> ); }