{#each tabs as tab, index (tab.path)} {@const isActive = tab.path === page.url.pathname} (hoveredIndex = index)} onmouseleave={() => (hoveredIndex = null)} onclick={() => supportsHaptic && haptic()} > {tab.name} {/each}