import React from 'react'; import './Modal.scss'; interface Props { isOpen: boolean; title: string; onClose?(): any; } export class Modal extends React.Component { constructor(props: Props) { super(props); } public render(): any { const { isOpen, onClose, title } = this.props; const hiddenClass = !isOpen ? 'CustomModal--hidden' : ''; return (

{title}

{this.props.children}
); } }