{#each items as item, index (item.key)} {#if index > 0}
{/if} {@const state = stateOf(index)} {@const slot = steps({ state })}
{#if state === "done"}
{:else} {index + 1} {/if}
{item.label}
{/each}