import React from "react"; import { Dialog, DialogBackdrop, DialogPanel } from "@headlessui/react"; import { cx } from "@/cva.config"; const Modal = React.memo(function Modal({ children, className, open, onClose, }: { children: React.ReactNode; className?: string; open: boolean; onClose: () => void; }) { return (
{/* TODO: This doesn't work well with other-sessions */}
e.stopPropagation()} > {children}
); }); export default Modal;