feat: re-add stats

This commit is contained in:
Xylight committed 2024-01-06 14:06:57 -08:00
1 parent 9d1ce19549
commit 00a114f2bf
4 files changed
+38 -18

No files matched your search

+18
View File
@@ -0,0 +1,18 @@
<script lang="ts">
import FormattedNumber from "../util/FormattedNumber.svelte"
export let label: string
export let content: string
export let formatted: boolean = false
</script>
<div class="flex flex-col {$$props.class}">
<span class="text-slate-600 dark:text-zinc-400 text-xs">{label}</span>
<span class="text-base">
{#if formatted}
<FormattedNumber number={Number(content)} />
{:else}
{content}
{/if}
</span>
</div>