import { useState } from "react" // @mui material components import Grid from "@mui/material/Grid" import Card from "@mui/material/Card" // ThreeD Garden components import MDBox from "~/components/mui/MDBox" import MDTypography from "~/components/mui/MDTypography" import MDAlert from "~/components/mui/MDAlert" import MDButton from "~/components/mui/MDButton" import MDSnackbar from "~/components/mui/MDSnackbar" // ThreeD Garden examples components import DashboardLayout from "~/components/elements/LayoutContainers/DashboardLayout" import DashboardNavbar from "~/components/elements/Navbars/DashboardNavbar" import Footer from "~/components/elements/Footer" function Notifications(): JSX.Element { const [successSB, setSuccessSB] = useState(false) const [infoSB, setInfoSB] = useState(false) const [warningSB, setWarningSB] = useState(false) const [errorSB, setErrorSB] = useState(false) const openSuccessSB = () => setSuccessSB(true) const closeSuccessSB = () => setSuccessSB(false) const openInfoSB = () => setInfoSB(true) const closeInfoSB = () => setInfoSB(false) const openWarningSB = () => setWarningSB(true) const closeWarningSB = () => setWarningSB(false) const openErrorSB = () => setErrorSB(true) const closeErrorSB = () => setErrorSB(false) const alertContent = (name: string) => ( A simple {name} alert with{" "} an example link . Give it a click if you like. ) const renderSuccessSB = ( ) const renderInfoSB = ( ) const renderWarningSB = ( ) const renderErrorSB = ( ) return ( Alerts {alertContent("primary")} {alertContent("secondary")} {alertContent("success")} {alertContent("error")} {alertContent("warning")} {alertContent("info")} {alertContent("light")} {alertContent("dark")} Notifications Notifications on this page use Toasts from Bootstrap. Read more details here. success notification {renderSuccessSB} info notification {renderInfoSB} warning notification {renderWarningSB} error notification {renderErrorSB}