import * as React from "react" import { cn } from "@/lib/cn" import { usePortalContainer } from "@/lib/portal" import { XIcon } from "lucide-react" import { Dialog as DialogPrimitive } from "radix-ui" import { buttonVariants } from "@/components/ui/button" function Dialog(props: React.ComponentProps) { return } function DialogTrigger(props: React.ComponentProps) { return } function DialogPortal(props: React.ComponentProps) { return } function DialogClose(props: React.ComponentProps) { return } /** Dimmed, blurred backdrop. */ function DialogOverlay({ className, ...props }: React.ComponentProps) { return ( ) } /** Close button in the design's ghost style. */ const closeButtonClass = cn(buttonVariants({ variant: "ghost", size: "sm", iconOnly: true }), "text-fg-subtle") function DialogContent({ className, children, showCloseButton = true, ...props }: React.ComponentProps & { showCloseButton?: boolean }) { return ( {children} {showCloseButton && ( )} ) } 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, closeButtonClass, }