import React, { ComponentType, MouseEventHandler, ReactNode } from 'react'; import clsx from 'clsx'; import styles from './popup.scss'; interface Props { title: ReactNode; wrapperClassName?: string; popupClassName?: string; bodyClassName?: string; isClosable?: boolean; onClose?: MouseEventHandler; } const Popup: ComponentType = ({ title, wrapperClassName, popupClassName, bodyClassName, isClosable = true, onClose, children, ...props // Passthrough the data-params for testing purposes }) => (

{title}

{isClosable ? : ''}
{children}
); export default Popup;