diff --git a/src/elderly/components/ConfirmDialog.tsx b/src/elderly/components/ConfirmDialog.tsx new file mode 100644 index 0000000..f3cf899 --- /dev/null +++ b/src/elderly/components/ConfirmDialog.tsx @@ -0,0 +1,41 @@ +import React from 'react'; +import { AlertTriangle } from 'lucide-react'; + +interface ConfirmDialogProps { + message: string; + onConfirm: () => void; + onCancel: () => void; +} + +/** + * 老人友好的确认对话框 + * 替代浏览器的 confirm + */ +export const ConfirmDialog: React.FC = ({ message, onConfirm, onCancel }) => { + return ( +
+
+
+ +

+ {message} +

+
+ + +
+
+
+
+ ); +};