+
+
+ {Object.keys(optionsByGroup).map(
+ (group, index) => {
+ const groupOptions =
+ optionsByGroup[group].options;
+ return (
+
+ {index !== 0 && (
+
+ )}
+
+ {groupOptions.map(
+ (option) => (
+ {
+ const option =
+ options.find(
+ (
+ option,
+ ) =>
+ option.value
+ .toLowerCase()
+ .trim() ===
+ selectedValue,
+ );
- if (
- !option
- )
- return null;
+ if (
+ !option
+ )
+ return null;
- if (
- multiple
- ) {
- handleMultipleSelect(
- props,
- option,
- );
- } else {
- handleSingleSelect(
- props,
- option,
- );
+ if (
+ multiple
+ ) {
+ handleMultipleSelect(
+ props,
+ option,
+ );
+ } else {
+ handleSingleSelect(
+ props,
+ option,
+ );
- setOpen(
- false,
- );
- }
- }}
- >
- {!disableCheckbox &&
- !option.disableCheckbox && (
-
- )}
- {
- option.label
+ setOpen(
+ false,
+ );
}
-
- ),
- )}
-
-
- );
- },
- )}
-
-
-
-
-
+ }}
+ >
+ {!disableCheckbox &&
+ !option.disableCheckbox && (
+