import React from 'react' import { Typography, Dialog, DialogContent } from '@mui/material' import { styled } from '@mui/material/styles' import { BootstrapDialogTitle } from './dialogTitle' export const BootstrapDialog = styled(Dialog)(({ theme }) => ({ '& .MuiDialogContent-root': { padding: theme.spacing(2) }, '& .MuiDialogActions-root': { padding: theme.spacing(1) } })) type ModalProps = { open: boolean setOpen: React.Dispatch> title: string payload: string } const Modal = (props: ModalProps) => { const { open, setOpen, title, payload } = props return (
setOpen(false)} open={open}> {title} {payload}
) } export default Modal