mirror of
https://github.com/immich-app/immich.git
synced 2025-12-20 09:15:35 +03:00
18 lines
592 B
Svelte
18 lines
592 B
Svelte
|
|
<script lang="ts">
|
||
|
|
import { locale } from '$lib/stores/preferences.store.js';
|
||
|
|
import { s } from '$lib/utils.js';
|
||
|
|
import { getAssetStatistics } from '@immich/sdk';
|
||
|
|
import LoadingSpinner from '$lib/components/shared-components/loading-spinner.svelte';
|
||
|
|
|
||
|
|
export let assetStats: NonNullable<Parameters<typeof getAssetStatistics>[0]>;
|
||
|
|
</script>
|
||
|
|
|
||
|
|
{#await getAssetStatistics(assetStats)}
|
||
|
|
<LoadingSpinner />
|
||
|
|
{:then data}
|
||
|
|
<div>
|
||
|
|
<p>{data.videos.toLocaleString($locale)} Video{s(data.videos)}</p>
|
||
|
|
<p>{data.images.toLocaleString($locale)} Photo{s(data.images)}</p>
|
||
|
|
</div>
|
||
|
|
{/await}
|