import * as React from "react"; import * as DialogPrimitive from "@radix-ui/react-dialog"; import { t as i18nT } from "i18next"; import { XIcon } from "~/components/ui/icons/vendor"; import { cn } from "~/lib/utils"; function Dialog({ ...props }: React.ComponentProps) { return ; } function DialogTrigger({ ...props }: React.ComponentProps) { return ; } function DialogPortal({ ...props }: React.ComponentProps) { return ; } function DialogClose({ ...props }: React.ComponentProps) { return ; } function DialogOverlay({ className, ...props }: React.ComponentProps) { return ( ); } function DialogContent({ className, children, withCloseButton = true, ...props }: React.ComponentProps & { withCloseButton?: boolean }) { return ( {children} {withCloseButton && ( {i18nT("shared.close")} )} ); } function DialogHeader({ className, ...props }: React.ComponentProps<"div">) { return
; } function DialogFooter({ className, ...props }: React.ComponentProps<"div">) { return
; } function DialogTitle({ className, ...props }: React.ComponentProps) { return ; } function DialogDescription({ className, ...props }: React.ComponentProps) { return ; } export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger };