import type { ReactNode } from 'react' import * as Dialog from '@radix-ui/react-dialog' import { X } from 'lucide-react' import { cn } from '../lib/utils' /** 原型弹窗的统一外观;Radix 负责焦点圈定、Esc 关闭和关闭后恢复焦点。 */ export function PrototypeDialog({ open, onClose, title, children, className }: { open: boolean; onClose: () => void; title: string; children: ReactNode; className?: string }) { return { if (!value) onClose() }}> {title} {children} }