Revamp calendar dialog (#158)

Co-authored-by: Camille Moussu <cmoussu@linagora.com>
This commit is contained in:
Camille Moussu
2025-10-07 11:14:08 +02:00
committed by GitHub
parent 2fa1dbb76b
commit 40c383c334
16 changed files with 1306 additions and 132 deletions
+25
View File
@@ -0,0 +1,25 @@
import Alert from "@mui/material/Alert";
import Snackbar from "@mui/material/Snackbar";
export function SnackbarAlert({
open,
setOpen,
message,
}: {
open: boolean;
setOpen: Function;
message: string;
}) {
return (
<Snackbar
open={open}
autoHideDuration={2000}
onClose={() => setOpen(false)}
anchorOrigin={{ vertical: "bottom", horizontal: "center" }}
>
<Alert onClose={() => setOpen(false)} sx={{ width: "100%" }}>
{message}
</Alert>
</Snackbar>
);
}