diff --git a/app/component/AlertMsg.js b/app/component/AlertMsg.js new file mode 100644 index 0000000..731fe08 --- /dev/null +++ b/app/component/AlertMsg.js @@ -0,0 +1,35 @@ +"use client"; + +import { Alert, Snackbar } from "@mui/material"; +import { useState } from "react"; + +function AlertMsg() { + const [open, setOpen] = useState(true); + + const handleClick = () => { + setOpen(true); + }; + + const handleClose = (event, reason) => { + if (reason === "clickaway") { + return; + } + + setOpen(false); + }; + + return ( + + + This is a success Alert inside a Snackbar! + + + ); +} + +export default AlertMsg; diff --git a/components/home/search/index.js b/components/home/search/index.js index 4f9933d..578a25e 100644 --- a/components/home/search/index.js +++ b/components/home/search/index.js @@ -54,6 +54,7 @@ function SearchBar() { + {/* */} ); }