{#if expanded}
{#each tabs as tab (tab.id)} {#if mounted.has(tab.id)}
{/if} {/each}
{/if}