{#if totalMatches > 0} {totalMatches} match{totalMatches === 1 ? '' : 'es'} {:else} No matches {/if}
{#if hasContent} {#each matches as match, index (index)} {@const isSelected = index === selectedIndex}
handleItemMouseEnter(index)} onclick={() => handleItemClick(index)} onkeydown={(e) => e.key === 'Enter' && handleItemClick(index)} >
{match.context || ''}
{/each} {/if}