{!loading && options.length === 0 ? (
No se encontraron resultados
) : (
options.map(option => (
{
onChange(option.id);
setIsOpen(false);
setSearch("");
}}
onKeyDown={(e) => {
if (e.key === 'Enter' || e.key === ' ') {
onChange(option.id);
setIsOpen(false);
setSearch("");
}
}}
className={`flex items-center justify-between px-3 py-2.5 rounded-lg cursor-pointer transition-colors outline-none focus:bg-indigo-600 focus:text-white ${value === option.id ? "bg-indigo-600 text-white" : "hover:bg-white/5 text-gray-300"
}`}
>
{option.name}
{value === option.id && }
))
)}