import * as React from "react"; import { cn } from "@/lib/utils"; const Dialog = ({ open, onOpenChange, children }: { open?: boolean; onOpenChange?: (v: boolean) => void; children: React.ReactNode }) => { if (!open) return null; return (
onOpenChange?.(false)}>
e.stopPropagation()}> {children}
); }; const DialogContent = React.forwardRef>(({ className, ...props }, ref) => (
)); DialogContent.displayName = "DialogContent"; const DialogHeader = ({ className, ...props }: React.HTMLAttributes) => (
); const DialogTitle = React.forwardRef>(({ className, ...props }, ref) => (

)); DialogTitle.displayName = "DialogTitle"; export { Dialog, DialogContent, DialogHeader, DialogTitle };