-
- {props.options.map((option) => (
- {
- const option = props.options.find(
- (option) => option.value.toLowerCase().trim() === selectedValue,
- );
+
+ {props.emptyText ?? "No results found"}
+
+ {props.options.map((option) => (
+ {
+ const option = props.options.find(
+ (option) => option.value.toLowerCase().trim() === selectedValue,
+ );
- if (!option) return null;
+ if (!option) return null;
- if (props.multiple) {
- handleMultipleSelect(props, option);
- } else {
- handleSingleSelect(props, option);
+ if (props.multiple) {
+ handleMultipleSelect(props, option);
+ } else {
+ handleSingleSelect(props, option);
- setOpen(false);
- }
- }}
- >
-
- {option.label}
-
- ))}
-
-
-