{#if !nothingSelected} {selected.name} {/if}
{#if focused}
{#if filteredWeapons.length} select(weapon)} on:mouseenter={() => onHover(index)} class={`p-3 rounded-xl cursor-pointer flex mr-2 ${index === 0 ? 'mt-2' : ''} ${index === weapons.length ? 'mb-2' : ''} ${!nothingSelected && selected.id === id ? 'text-primary font-semibold' : ''} ${hoveredIndex === index ? 'hovered' : ''}`}> {weapon.name} {weapon.name} {:else} Weapon not found {/if}
{/if}