import { ReactNode, Fragment } from "react"; import { Dialog, DialogBackdrop, DialogPanel, Transition, TransitionChild } from "@headlessui/react"; import clsx from "clsx"; interface Props { children: ReactNode; onClose: () => void; className?: string; } export default function OpenModal({ children, onClose, className = "sm:max-w-3xl" }: Props) { return (
{/* This element is to trick the browser into centering the modal contents. */} {children}
); }