import * as React from "react"; import { Dialog as DialogPrimitive } from "@base-ui/react/dialog"; import { X } from "lucide-react"; import { cn } from "../../lib/utils"; const Dialog = DialogPrimitive.Root; const DialogTrigger = DialogPrimitive.Trigger; const DialogPortal = DialogPrimitive.Portal; const DialogClose = DialogPrimitive.Close; const DialogOverlay = React.forwardRef< React.ComponentRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )); DialogOverlay.displayName = "DialogOverlay"; const DialogContent = React.forwardRef< React.ComponentRef, React.ComponentPropsWithoutRef & { /** Optional visual override for the backdrop rendered with this content. */ backdropClassName?: string; /** Removes the default top-right close control. */ hideClose?: boolean; } >(({ backdropClassName, className, children, hideClose, ...props }, ref) => (
{children} {!hideClose && ( Close )}
)); DialogContent.displayName = "DialogContent"; function DialogHeader({ className, ...props }: React.HTMLAttributes) { return (
); } const DialogTitle = React.forwardRef< React.ComponentRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )); DialogTitle.displayName = "DialogTitle"; const DialogDescription = React.forwardRef< React.ComponentRef, React.ComponentPropsWithoutRef >(({ className, ...props }, ref) => ( )); DialogDescription.displayName = "DialogDescription"; export { Dialog, DialogPortal, DialogOverlay, DialogClose, DialogTrigger, DialogContent, DialogHeader, DialogTitle, DialogDescription, };