{#each steps as step, idx} {@const isCurrent = idx === selectedIdx} {@const isPast = idx < selectedIdx} {#if idx !== 0}
{/if}
{#if isPast}
{/if}
{idx + 1}.
{#if idx !== steps.length - 1}
{/if} {/each}