WIP

{#key $nextWord}

{$nextWord} {#if $scores[$nextWord!] === undefined} new {:else if ($scores[$nextWord!]?.score ?? 0) < 0} weak {/if}

{/key} {#key $nextWord}
{}} />
{/key}
{#each Object.entries($scores) .sort(([, a], [, b]) => a.score - b.score) .splice(0, 10) as [word, score]} {/each}
Weak
{word} {score.score.toFixed(2)}
{#each Object.entries($scores) .sort(([, a], [, b]) => b.score - a.score) .splice(0, 10) as [word, score]} {/each}
Strong
{word} {score.score.toFixed(2)}
{#each Object.entries($scores) .sort(([, a], [, b]) => b.lastTyped - a.lastTyped) .splice(0, 10) as [word, score]} {/each}
Rehearse
{word}
Settings {#each Object.entries(learnConfigDefault) as [key, value]} {/each}
{key} ($learnConfigStored[key] = event.target.value)} />