import React from 'react'; import Button from '@material-ui/core/Button'; import Dialog from '@material-ui/core/Dialog'; import DialogActions from '@material-ui/core/DialogActions'; import DialogTitle from '@material-ui/core/DialogTitle'; interface Props { children?: any; open: boolean; TransitionComponent?: any; onClose?: any; title?: string; } const SharedModal = (props: Props) => { const {children, open, TransitionComponent, onClose, title} = props; return {title && {title}} {children} ; }; export default SharedModal;