import React, { Fragment } from 'react'; import { Dialog, Transition } from '@headlessui/react'; export interface ModalProps { open: boolean; onClose: () => void; children: React.ReactNode; } export const Modal = ({ open, onClose, children }: ModalProps): JSX.Element => { return (
{/* This element is to trick the browser into centering the modal contents. */} {children}
); };