import { Portal } from 'react-portal' import { XIcon } from '@heroicons/react/outline' const Modal = ({ isOpen, onClose, children, hideClose = false, noPadding = false, alignTop = false, }) => { return (
{isOpen ? ( ) : null} {alignTop ? null : ( )} {isOpen ? (
{!hideClose ? (
) : null} {children}
) : null}
) } const Header = ({ children }) => { return
{children}
} Modal.Header = Header export default Modal