{#if activeIndex >= 0}
{/if} {#each navItems as item, index} (hoveredIndex = index)} onmouseleave={() => (hoveredIndex = null)} > {item.text} {/each}