import { Dialog as HeadlessDialog, Transition } from "@headlessui/react"; import clsx from "clsx"; import type { Dispatch, FC, PropsWithChildren, ReactNode, SetStateAction } from "react"; import { Fragment, useRef } from "react"; interface DialogProps extends PropsWithChildren { open: boolean; setOpen: Dispatch>; icon?: ReactNode; title: ReactNode; actions?: ReactNode; inline?: boolean; } const Dialog: FC = ({ open, setOpen, ...props }) => { const cancelButtonRef = useRef(null); return (
{props.title}
{props.icon}
{props.children}
{props.actions}
); }; export default Dialog;