{#if toasts.length}
{#each toasts as t (t.id)}
dismiss(t.id)} oncontextmenu={(e) => openDetail(e, t)} >
{t.message}
{t.detail ?? '\u00a0'}
{/each}
{/if} {#if detail}
(detail = null)} onkeydown={onBackdropKey} >
e.stopPropagation()} onkeydown={(e) => e.stopPropagation()} >
{detail.kind}
(detail = null)} aria-label="Close">
{detail.message}
{#if detail.detail}
{detail.detail}
{/if}
navigator.clipboard.writeText(`${detail!.message}${detail!.detail ? '\n' + detail!.detail : ''}`)}> Copy
{ dismiss(detail!.id); detail = null }}> Dismiss
{/if}