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