mirror of
https://github.com/immich-app/immich.git
synced 2025-12-23 17:25:11 +03:00
18 lines
508 B
Svelte
18 lines
508 B
Svelte
<script lang="ts">
|
|
import { getAlbumDateRange } from '$lib/utils/date-time';
|
|
import type { AlbumResponseDto } from '@immich/sdk';
|
|
import { t } from 'svelte-i18n';
|
|
|
|
interface Props {
|
|
album: AlbumResponseDto;
|
|
}
|
|
|
|
let { album }: Props = $props();
|
|
</script>
|
|
|
|
<span class="my-2 flex gap-2 text-sm font-medium text-gray-500" data-testid="album-details">
|
|
<span>{getAlbumDateRange(album)}</span>
|
|
<span>•</span>
|
|
<span>{$t('items_count', { values: { count: album.assetCount } })}</span>
|
|
</span>
|