Initial commit - restaurant dashboard

This commit is contained in:
RaghadMAlkous
2025-09-04 01:17:15 +03:00
parent 13891b47fd
commit 7b2f8840cb
136 changed files with 16637 additions and 6032 deletions
+32
View File
@@ -0,0 +1,32 @@
import React from "react";
import { Snackbar, Alert } from "@mui/material";
const CustomSnackbar = ({ open, message, severity, onClose }) => {
return (
<Snackbar
open={open}
autoHideDuration={4000}
onClose={onClose}
anchorOrigin={{ vertical: "bottom", horizontal: "center" }}
>
<Alert
onClose={onClose}
severity={severity}
variant="filled"
sx={{
width: { xs: "40%", sm: "60%", md: "100%" },
color: "white",
fontSize: "16px",
fontWeight: "500",
backgroundColor: "#e57f3f", // ثابت حسب طلبك
borderRadius: 6,
mb: 6,
}}
>
{message}
</Alert>
</Snackbar>
);
};
export default CustomSnackbar;