import { ReactNode } from "react"; import { requestScopedT as i18nT } from "~/locale/request-scoped-t"; // import { Dialog, DialogBackdrop, DialogPanel, DialogTitle } from "@headlessui/react"; import XIcon from "../icons/XIcon"; import { ChevronsRightIcon } from "~/components/ui/icons/vendor"; import clsx from "clsx"; import { cn } from "~/lib/utils"; import { Sheet, SheetClose, SheetContent, SheetDescription, SheetHeader, SheetTitle } from "~/components/ui/sheet"; export default function SlideOverWideEmpty({ title, description, open, children, onClose, className, buttons, withTitle = true, withClose = true, overflowYScroll, position = 5, size = "2xl", classNameContent: _classNameContent, }: { title?: string | ReactNode; description?: string | ReactNode; open: boolean; children: ReactNode; onClose: () => void; className?: string; buttons?: ReactNode; withTitle?: boolean; withClose?: boolean; overflowYScroll?: boolean; position?: 0 | 1 | 2 | 3 | 4 | 5 | 99; size?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "full"; classNameContent?: string; }) { return ( { if (!e) { onClose(); } }} > {/* */}
{withTitle ? ( {title} {description && {description}} ) : (
)}
{buttons} {withClose && ( )}
{children}
); }