{#snippet title()}

{$goal?.title() ?? "Funding goal"}

{/snippet}
{#if $event && $goal && $progress}
{#if $goal.image()} {/if}

{$goal.title()}

{#if $goal.room()} in {/if} started {formatTimestampRelative($event.created_at)}
{$progress.backers.length} {#if $progress.backers.length > 0} {/if} {$progress.backers.length === 1 ? "backer" : "backers"}
{remaining.toLocaleString()} sats to go
{$progress.isEnded ? "—" : days} {#if $progress.isEnded && $progress.closedAt} ended {formatTimestampRelative($progress.closedAt)} {:else if deadline} {days === 1 ? "day" : "days"} left {:else} {days === 1 ? "day" : "days"} running {/if}
{#if ENABLE_ZAPS && !$progress.isEnded} {$progress.isFunded ? "Chip in anyway" : "Contribute to this goal"} {/if}
{#if $goal.summary()}

About this goal

{/if} {:else}
{#await sleep(5000)} Loading funding goal... {:then}

Failed to load funding goal.

{/await}
{/if}