+ {(currentValue as string[]).map(
+ (value: string, index: number) => (
+
+ {
+ const newValue = [...currentValue] as string[];
+ newValue[index] = e.target.value;
+ setUserConfig({ ...userConfig, [key]: newValue });
+ }}
+ />
+ }
+ className={styles["delete-button"]}
+ onClick={() => {
+ const newValue = [...currentValue] as string[];
+ newValue.splice(index, 1);
+ setUserConfig({ ...userConfig, [key]: newValue });
+ }}
+ />
+
+ ),
+ )}
+
}
+ text="Add Path"
+ className={styles["add-button"]}
+ bordered
+ onClick={() => {
+ const newValue = [...currentValue, ""] as string[];
+ setUserConfig({ ...userConfig, [key]: newValue });
+ }}
+ />
+
+