import { Fragment, ReactNode } from "react"; import { Dialog, Transition } from "@headlessui/react"; import XIcon from "../icons/XIcon"; import clsx from "clsx"; export default function SlideOverWideEmpty({ title, description, open, children, onClose, className, buttons, withTitle = true, withClose = true, overflowYScroll, position = 1, }: { title?: string; description?: string; open: boolean; children: ReactNode; onClose: () => void; className?: string; buttons?: ReactNode; withTitle?: boolean; withClose?: boolean; overflowYScroll?: boolean; position?: 0 | 1 | 2 | 3 | 4 | 5; }) { return (
{withTitle ? (
{title} {description &&

{description}

}
) : (
)}
{buttons} {withClose && ( )}
{children}
); }