import React from 'react'; import Dialog from '@material-ui/core/Dialog'; import DialogActions from '@material-ui/core/DialogActions'; import DialogContent from '@material-ui/core/DialogContent'; import DialogContentText from '@material-ui/core/DialogContentText'; import DialogTitle from '@material-ui/core/DialogTitle'; import Button from '@material-ui/core/Button'; import Slide from '@material-ui/core/Slide'; // modified from https://material-ui.com/demos/dialogs/ function Transition(props: any) { return ; } type AlertDialogProps = { open: boolean, handleClose: (r: boolean) => void, title: string, message: string }; function AlertDialog(props: AlertDialogProps) { return ( props.handleClose(false)} aria-labelledby="alert-dialog-slide-title" aria-describedby="alert-dialog-slide-description"> {props.title} {props.message} ); } export default AlertDialog;