{#if steps} {#each steps as step, index} {@const stepNumber = index + 1} {#if firstOptional === index}
  1. OPTIONAL

  2. {/if} dispatch('step', stepNumber)} bind:currentSub current={currentStep === stepNumber} completed={stepNumber < currentStep} {step} /> {/each} {/if}