import { Fragment } from 'react' import { Dialog, Transition } from '@headlessui/react' import { XCircleIcon } from '@heroicons/react/outline' type Props = { title: string children: React.ReactNode isOpen: boolean handleClose: () => void } export const BaseModal = ({ title, children, isOpen, handleClose }: Props) => { return (
{/* This element is to trick the browser into centering the modal contents. */}
handleClose()} />
{title}
{children}
) }