import * as React from "react"; import * as DialogPrimitive from "@radix-ui/react-dialog"; import { requestScopedT as i18nT } from "~/locale/request-scoped-t"; 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, overlayClassName, closeButtonClassName, positioning = "centered", ...props }: React.ComponentProps & { withCloseButton?: boolean; overlayClassName?: string; closeButtonClassName?: string; positioning?: "centered" | "custom"; }) { 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 };