"use client" import * as React from "react" import { XIcon } from "lucide-react" import { Dialog as DialogPrimitive } from "radix-ui" import { cn } from "@/app/lib/utils" import { Button } from "@/app/components/ui/button" import { PopoverContainerContext } from "@/app/components/ui/popover" import { useT } from "@/app/lib/i18n/MessagesProvider" 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, showCloseButton = true, ref, ...props }: React.ComponentProps & { showCloseButton?: boolean }) { const t = useT() const [container, setContainer] = React.useState(null) const setRefs = React.useCallback( (node: HTMLDivElement | null) => { setContainer(node) if (typeof ref === "function") ref(node) else if (ref) ref.current = node }, [ref] ) return ( {children} {showCloseButton && ( {t("Close")} )} ) } function DialogHeader({ className, ...props }: React.ComponentProps<"div">) { return (
) } function DialogFooter({ className, showCloseButton = false, children, ...props }: React.ComponentProps<"div"> & { showCloseButton?: boolean }) { const t = useT() return (
{children} {showCloseButton && ( )}
) } 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, }