import { Button, Dialog, DialogActions, DialogContent, DialogContentText, DialogTitle, } from '@material-ui/core'; import React from 'react'; import PropTypes from 'prop-types'; function AlertDialog({ open, cancelHandler, acceptHandler, body, title, cancelComponent, acceptComponent, }) { return ( {title} {body} {acceptHandler && ( )} {cancelHandler && ( )} ); } AlertDialog.propTypes = { open: PropTypes.bool, cancelHandler: PropTypes.func, acceptHandler: PropTypes.func, body: PropTypes.object, title: PropTypes.string, cancelComponent: PropTypes.elementType, acceptComponent: PropTypes.object, }; export default AlertDialog;