{#if data !== null && data.messages.length > 0}
{#each visible as msg (msg.id)}
{msg.text}
{new Date(msg.queuedAt).toLocaleTimeString()}
{#if onCancel !== undefined}
handleCancel(msg.id)} >
{/if}
{/each}
{/if}