+ {choices.length > 0 || displayCustomValue ? (
+ <>
+ {displayCustomValue && (
+
+ )}
+ {(choices.length > 0 || displayValues.length > 0) &&
+ displayCustomValue &&
}
+ {displayValues.map(value => (
+
+ ))}
+ {displayValues.length > 0 && choices.length > 0 && (
+
+ )}
+ {choices.map((suggestion, index) => {
+ const choiceIndex = getChoiceIndex(
+ index,
+ displayValues,
+ displayCustomValue
+ );
+
+ return (
+
+ );
+ })}
+ {hasMore && (
+ <>
+
+
+
+
+ >
+ )}
+ >
+ ) : (
+
+ )}
+
+