import { cn } from 'cn' import { Icon } from './icon' import { Button } from './ui/button' import { DialogClose, DialogContent, DialogHeader, Dialog as DialogRoot, DialogTitle, } from './ui/dialog' export function Dialog({ title, onClose, children, className, }: { title: string className?: string onClose: () => void children: React.ReactNode }) { return ( { if (!open) onClose() }} > {title} } > {children} ) }