{#snippet typeIcon(kind: ToastKind)} {#if kind === "info"} {:else if kind === "success"} {:else if kind === "warning"} {:else if kind === "error"} {/if} {/snippet}
{#each toaster.toasts as toast (toast.id)}
{@render typeIcon(toast.kind)}

{toast.message}

{/each}