{#if showFailure || showPending}
{#if showFailure} {@const url = failedUrls[0]} {@const status = $thunk.status[url]} {@const message = $thunk.details[url]}
{#snippet children()}
Failed to send!
{/snippet}
{:else if canCancel || isPending}
Sending...
Cancel
{/if}
{/if}