import * as React from 'react'; import classNames from 'classnames'; type Props = { title: string; closeFunction: () => void; body: any; footer?: any; active: boolean; className?: string; headColor: string; }; class Modal extends React.Component { static defaultProps = { headColor: 'light', }; render() { const { title, closeFunction, body, footer, active, className, headColor, } = this.props; const isActive = active ? 'is-active' : null; let showFooter = null; if (footer) { showFooter = ; } return (

{title}

{body}
{showFooter}
); } } export default Modal;