import React from 'react'; import { Dialog, DialogContent, DialogContentText, DialogTitle, IconButton, useTheme, } from '@mui/material'; import CloseIcon from '@mui/icons-material/Close'; import { useAppDispatch, useAppSelector } from '../hooks'; import { hideDialog, selectUIState } from '../slices/uiSlice'; function CalendarDialog() { const dispatch = useAppDispatch(); const { dialogOpen } = useAppSelector(selectUIState); const theme = useTheme(); const handleClose = () => { dispatch(hideDialog()); }; return ( Calendar Invitation ({ position: 'absolute', right: 8, top: 8, color: theme.palette.grey[500], })} > Scan the QR code or click the link below to add the calendar invite to your device. Add to calendar ); } export default CalendarDialog;