import { Dialog } from '@headlessui/react' import { XIcon } from '@heroicons/react/solid' type ModalProps = { title?: string children: React.ReactNode isOpen: boolean onClose: () => void hideClose?: boolean } function Modal({ title = '', children, isOpen, onClose, hideClose, }: ModalProps) { return (
{!hideClose ? ( ) : null} {title} {children}
) } export default Modal