-
-
-
- onChangeTempSettings({ proxyType: newProxyType.value })
- }
- valueKey="value"
- labelKey="name"
- ariaLabelledBy="proxy-type-input"
- options={availableProxyTypes}
- />
-
-
-
-
- onChangeTempSettings({ proxyLocation: value })}
- />
-
-
-);
+const ProxySettings = ({ tempSettings, onChangeTempSettings }) => {
+ const { proxyType, proxyLocation, setProxyType, setProxyLocation } =
+ useProxySettings(tempSettings);
+
+ const isProxySettingsChanged =
+ proxyType !== tempSettings.proxyType ||
+ proxyLocation !== tempSettings.proxyLocation;
+
+ return (
+