"use client"; import { Dialog as DialogPrimitive } from "@base-ui/react/dialog"; import { XIcon } from "lucide-react"; import type * as React from "react"; import { Button } from "@/components/ui/button"; import { cn } from "@/lib/utils"; function Dialog({ ...props }: DialogPrimitive.Root.Props) { return ; } function DialogTrigger({ ...props }: DialogPrimitive.Trigger.Props) { return ; } function DialogPortal({ ...props }: DialogPrimitive.Portal.Props) { return ; } function DialogClose({ ...props }: DialogPrimitive.Close.Props) { return ; } function DialogOverlay({ className, ...props }: DialogPrimitive.Backdrop.Props) { return ( ); } function DialogContent({ className, children, showCloseButton = true, ...props }: DialogPrimitive.Popup.Props & { showCloseButton?: boolean; }) { return ( {children} {showCloseButton && ( } > Close )} ); } function DialogHeader({ className, ...props }: React.ComponentProps<"div">) { return (
); } function DialogFooter({ className, showCloseButton = false, children, ...props }: React.ComponentProps<"div"> & { showCloseButton?: boolean; }) { return (
{children} {showCloseButton && ( }> Close )}
); } function DialogTitle({ className, ...props }: DialogPrimitive.Title.Props) { return ( ); } function DialogDescription({ className, ...props }: DialogPrimitive.Description.Props) { return ( ); } export { Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, };