({
handleSelect(item)}
- style={{
- ...itemStyles,
- backgroundColor: isSelected ? "#e6e6e6" : "transparent",
- }}
+ style={getItemStyles(isSelected)}
onMouseEnter={(e) => (e.currentTarget.style.backgroundColor = "#f3f2f1")}
onMouseLeave={(e) =>
(e.currentTarget.style.backgroundColor = isSelected ? "#e6e6e6" : "transparent")
}
>
- {getDisplayText(item)}
+ {getDisplayText(item)}
);
})
) : (
- No items found
+ No items found
)}
-