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