+
+
+ {'Meet '}
+
+ {' conditions in the group'}
+
+
+
+ {calculations.map((calculation, i) => (
+ onRemove(i)}
+ />
+ ))}
+
+
+
+
+
+
+ );
+}
+
+const VariableHookContext = createContext(useWorkflowVariableOptions);
+
+export function CalculationConfig({ value, onChange, useVariableHook = useWorkflowVariableOptions }) {
+ const rule = value && Object.keys(value).length ? value : { group: { type: 'and', calculations: [] } };
+ return (
+