{#each steps as step, i}
{@const state = i < safeCurrentIndex ? 'completed' : i === safeCurrentIndex ? 'current' : 'upcoming'}
-
{state === 'completed' ? '✓' : i + 1}
{step}
{#if i < steps.length - 1}
{/if}
{/each}
{steps[safeCurrentIndex]} · {safeCurrentIndex + 1}/{steps.length}