(
+
+ Flat Fee Values
+
+ {currencies.map((currency) => (
+
+
+
+ onChange({
+ ...value,
+ [currency]: parseFloat(e.target.value) || 0,
+ })
+ }
+ placeholder={`Enter amount in ${currency.toUpperCase()}`}
+ />
+
+ ))}
+
+
+
+ )}
+ />
+ )}
+
+ {rateType === RateType.PERCENTAGE && (
+ <>
+
+
+ {minCommissionEnabled && currencies.length > 0 && (
+
+
+ {currencies.map((currency) => (
+
(
+
+ {currency.toUpperCase()}
+
+
+ onChange({
+ ...value,
+ [currency]: parseFloat(e.target.value) || 0,
+ })
+ }
+ placeholder={`Enter minimum in ${currency.toUpperCase()}`}
+ />
+
+
+ )}
+ />
+ ))}
+
+ )}
+
+
+
+ {maxCommissionEnabled && currencies.length > 0 && (
+
+
+ {currencies.map((currency) => (
+
(
+
+ {currency.toUpperCase()}
+
+
+ onChange({
+ ...value,
+ [currency]: parseFloat(e.target.value) || 0,
+ })
+ }
+ placeholder={`Enter maximum in ${currency.toUpperCase()}`}
+ />
+
+
+ )}
+ />
+ ))}
+
+ )}
+ >
+ )}
+
+
+
+
+
+
+
);
};