import React, { PropsWithChildren } from 'react'; export interface ModalProps { active: boolean showCloseButton?: boolean onClose?: (evt: React.MouseEvent) => void } export class Modal extends React.PureComponent> { render() { const { children, active, showCloseButton, onClose } = this.props; return (
{children}
{ showCloseButton ? : null }
); } }