+
+ setQuery(event.target.value)}
+ placeholder={"Search..."}
+ displayValue={(hint: Hint | undefined) => hint?.caption ?? ""}
+ />
+
+
+ {query.length > 0 && (
+
+
+
+ {hints.length === 0 && query !== "" ? (
+ Nothing found.
+ ) : null}
+ {/* */}
+ {hints.map((item: any, id: number) => (
+
+ classNames(
+ active
+ ? "text-gray-900 bg-blue-50"
+ : "font-normal ",
+ "cursor-default select-none relative py-2 pl-3 pr-9",
+ selected
+ ? "text-gray-900 bg-blue-100"
+ : "font-normal "
+ )
+ }
+ value={item}
+ >
+ {item.caption}
+
+ ))}
+ {/* */}
+
+
+
+ )}
+
+
+