import * as React from "react"; import { X } from "lucide-react"; import { cn } from "@/lib/utils"; type DialogProps = { open: boolean; title: string; description?: string; children: React.ReactNode; footer?: React.ReactNode; onClose: () => void; className?: string; }; export function Dialog({ open, title, description, children, footer, onClose, className, }: DialogProps): React.ReactElement | null { if (!open) { return null; } return (
{description}
: null}