import React from "react"; import Card from "@mui/material/Card"; import { Typography } from "@mui/material"; import Button from '@mui/material/Button'; import Snackbar from '@mui/material/Snackbar'; export default function PositionedSnackbars() { const [state, setState] = React.useState({ open: false, vertical: 'top', horizontal: 'center', }); const { vertical, horizontal, open } = state; const handleClick = (newState) => () => { setState({ open: true, ...newState }); }; const handleClose = () => { setState({ ...state, open: false }); }; const buttons = ( ); return ( <> Positioned Snackbars
{buttons}
); }