PluginProbe
Extendify / 2.2.0
Extendify v2.2.0
3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 All 127 releases
extendify / src / Agent / workflows / settings / components / UpdateSettingConfirm.jsx

UpdateSettingConfirm.jsx in Extendify 2.2.0, at src/Agent/workflows/settings/components/UpdateSettingConfirm.jsx

42 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { __, sprintf } from '@wordpress/i18n';
2
3 export const UpdateSettingConfirm = ({ inputs, onConfirm, onCancel }) => {
4 const handleConfirm = () => {
5 onConfirm({ data: inputs });
6 };
7
8 return (
9 <div className="mb-4 ml-10 mr-2 flex flex-col rounded-lg border border-gray-300 bg-gray-50 rtl:ml-2 rtl:mr-10">
10 <div className="rounded-lg border-b border-gray-300 bg-white">
11 <div className="p-3">
12 <p className="m-0 p-0 text-sm text-gray-900">
13 {sprintf(
14 // translators: 1: setting name, 2: new setting value
15 __(
16 'The AI Agent wants to change the setting "%1$s" to "%2$s". Please confirm.',
17 'extendify-local',
18 ),
19 inputs.settingName,
20 inputs.newSettingValue,
21 )}
22 </p>
23 </div>
24 </div>
25 <div className="flex justify-start gap-2 p-3">
26 <button
27 type="button"
28 className="w-full rounded border border-gray-300 bg-white p-2 text-sm text-gray-700"
29 onClick={onCancel}>
30 {__('Cancel', 'extendify-local')}
31 </button>
32 <button
33 type="button"
34 className="w-full rounded border border-design-main bg-design-main p-2 text-sm text-white"
35 onClick={handleConfirm}>
36 {__('Confirm', 'extendify-local')}
37 </button>
38 </div>
39 </div>
40 );
41 };
42