{ if (e.key === "Enter" || e.key === " ") { handle_toggle(); } }} >
{#if type === "warning"}
{:else if type === "info"}
{:else if type === "success"}
{:else if type === "error"}
{/if}
{type_label} {#if count > 1}
({count})
{/if}
0}>
{ e.stopPropagation(); close_all(); }} class="toast-close {type}" type="button" aria-label="Close" data-testid="toast-close" >
×
{#if expanded}
{#each messages as message, i (message.id)}
{@html sanitize(message.message || default_messages[type])}
{#if i < messages.length - 1}
{/if} {/each}
{/if} {#if has_duration}
{/if}