{#each toasts as t (t.id)}
{#if t.kind === 'ok'}
{:else if t.kind === 'error'}
{:else}
{/if}
{t.text}
dismiss(t.id)} aria-label="Dismiss">
{/each}