+ {filteredHosts.map((host, index) => (
+
(itemRefs.current[index] = el)}
+ onClick={() => selectHost(host)}
+ onMouseEnter={() => setHighlightedIndex(index)}
+ className={`cursor-pointer px-2 py-1 text-xs ${
+ index === highlightedIndex
+ ? "bg-accent text-white"
+ : "text-foreground hover:bg-border-medium"
+ }`}
+ >
+ {host}
+
+ ))}
+