+ {options.map((item) => {
+ const activeValue = values?.[item.memberName];
+ const selectOptions = item.values.map(toSelectOption);
+ selectOptions.unshift({
+ label:
+ selectOptions.length === 0 ? "None available" : "Select option",
+ value: "",
+ });
+
+ return (
+
+
+
+
+
+ {isReadOnly ? (
+ <>
+ {activeValue}
+ {editButton}
+ >
+ ) : (
+
+
+ );
+ })}
+
+ )}
+ {!isSpecific && (
+
+ {isReadOnly ? (
+ <>
+ {firstValue}
+ {editButton}
+ >
+ ) : (
+
+ )}
+