import Box from '@mui/material/Box'; import Button from '@mui/material/Button'; import Typography from '@mui/material/Typography'; import Modal from '@mui/material/Modal'; const style = { position: 'absolute', top: '50%', left: '50%', transform: 'translate(-50%, -50%)', width: 400, bgcolor: 'background.paper', border: '2px solid #000', boxShadow: 24, p: 4, }; export default function LoginModal({open, setOpenLogin }) { const handleClose = () => setOpenLogin(false); return ( <div> <Modal open={open} onClose={handleClose} aria-labelledby="modal-modal-title" aria-describedby="modal-modal-description" > <Box sx={style}> <Typography id="modal-modal-title" variant="h6" component="h2"> <strong>Login required to make booking.</strong> </Typography> <Typography id="modal-modal-description" sx={{ mt: 2 }}> It looks like you haven't logged in. Login is required to keep track of your bookings and link them back to you. </Typography> </Box> </Modal> </div> ); }