feat: re-add stats
This commit is contained in:
1 parent
9d1ce19549
commit
00a114f2bf
4 files changed
+38
-18
No files matched your search
@@ -7,7 +7,7 @@
|
||||
|
||||
<Disclosure buttonClass="text-red-500" class="items-start justify-items-start gap-2">
|
||||
<div slot="summary" class="font-medium w-full text-left flex flex-row items-center justify-between">
|
||||
<slot name="title" />
|
||||
<div class="flex flex-row gap-1 items-center"><slot name="title" /></div>
|
||||
<Icon src={ChevronDown} size="20" mini />
|
||||
</div>
|
||||
<div class="pt-2">
|
||||
|
||||
@@ -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>
|
||||
Reference in new issue
Block a user