{#each model as tab, i}
{ selected = i }} > {#if tab.icon !== undefined}
{/if}
{/each}
{#each model as tab, i} {#if selected === i} {#if typeof tab.component === 'string'}
{:else}
{/if} {/if} {/each}