diff --git a/frontend/src/renderer/components/ConfirmDialog.jsx b/frontend/src/renderer/components/ConfirmDialog.jsx new file mode 100644 index 0000000..e944a61 --- /dev/null +++ b/frontend/src/renderer/components/ConfirmDialog.jsx @@ -0,0 +1,29 @@ +import React from 'react'; +import { Modal } from 'antd'; + +function ConfirmDialog({ + open, + title = '确认', + content = '确定要执行此操作吗?', + onConfirm, + onCancel, + confirmText = '确定', + cancelText = '取消', + danger = false +}) { + return ( + +

{content}

+
+ ); +} + +export default ConfirmDialog;