{#each Object.entries($context.tabs) as [id, { title, badge }]}
($context.current = id)} > {#if badge}
{/if}
{title}
{/each}