import './style.css'; import React from 'react'; import RModal from 'react-modal'; interface IModalProps { isOpen: boolean; onClose: (event: React.MouseEvent | React.KeyboardEvent) => void; children: any; } type IModalContentProps = Pick; const Modal = ({ children, isOpen, onClose }: IModalProps) => ( {children} ); const ModalTitle = ({ children }: IModalContentProps) =>
{children}
; const ModalContent = ({ children }: IModalContentProps) =>
{children}
; const ModalFooter = ({ children }: IModalContentProps) =>
{children}
; export { Modal, ModalContent, ModalFooter, ModalTitle };