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