{#if loading}

Loading…

{:else if error}

{error}

{:else if deck}

{deck.title}

{#if deck.description}

{deck.description}

{/if}

{deck.questions?.length ?? 0} questions

Questions

    {#each deck.questions ?? [] as q, i}
  1. {q.prompt}
      {#each (q.answers ?? []) as ans, j}
    • {ans}
    • {/each}
    {#if q.explanation}

    {q.explanation}

    {/if}
  2. {/each}
{/if}