{#if toast.loading}
{:else}
{/if}
{#if toast.title}
{toast.title}
{/if}
{toast.content}
{#if toast.action}
{ toast.action?.() toasts.update(toasts => toasts.filter(t => t.id != toast.id)) }} class="rounded-lg w-max transition-colors hover:bg-black/20 dark:hover:bg-white/20 p-2" >
{/if}
{ toasts.update(toasts => toasts.filter(t => t.id != toast.id)) }} class="rounded-lg w-max transition-colors hover:bg-black/20 dark:hover:bg-white/20 p-2" >