{#each $toasts as toast (toast.id)}
{toast.text}
{#if toast.action}
{ toast.action?.handler(); dismiss(toast.id); }} class="text-sm font-semibold underline" > {toast.action.label}
{/if}
dismiss(toast.id)} class="ml-2 opacity-70 hover:opacity-100">×
{/each}