import React from 'react'; import { Dialog, DialogContent, DialogHeader, DialogTitle, DialogFooter, DialogDescription, } from '@/components/ui/dialog'; import { Button } from '@/components/ui/button'; import { CheckCircle2 } from 'lucide-react'; import type { WorkflowDefinition } from '../types'; interface DeployDialogProps { open: boolean; record: WorkflowDefinition | null; onOpenChange: (open: boolean) => void; onConfirm: () => Promise; } /** * 发布确认对话框 */ const DeployDialog: React.FC = ({ open, record, onOpenChange, onConfirm, }) => { if (!record) return null; return ( 确认发布工作流? 您确定要发布工作流 "{record.name}" 吗? 发布后将可以启动执行。 ); }; export default DeployDialog;