{#each tabs as tab, i}
switchTabs(i)}>{tab}
{/each}