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