{#if toasts.length > 0}
{#each toasts as toast (toast.id)} {@const Icon = icons[toast.type]} {/each}
{/if}