{#snippet lead()} {#if !model.loading}

{#if history.count > 0} {#each history.sums as sum, i (sum.code)} {#if i > 0} + {/if} {fmt(sum.code, sum.amount, 0)} {/each} all time · {counted(history.count, noun)} {#if history.median} · median {fmt(history.median.code, history.median.amount, 0)} {/if} {#if every !== null} · every {formatNumber(every, every < 10 ? 1 : 0)} days {/if} · last {formatDate(history.last, "short")} {#if bill} · subscription {bill.name} {/if} {:else} No {noun} yet {/if}

{/if} {/snippet}