import {Dialog, DialogPanel, DialogTitle, Transition, TransitionChild} from "@headlessui/react"; import clsx from "clsx"; import {Fragment, ReactElement} from "react"; interface Props { isOpen: boolean; onClose: () => void; maxWidth?: string; title?: string; className?: string; titleClassName?: string; children?: ReactElement; } export default function Modal({isOpen, maxWidth, title, className, titleClassName, onClose, children}: Props) { return (
{title && ( {title} )} {children}
); }