blob: 275adadfc106a75aa52888fee7871be9547f60ba (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
<script lang="ts">
import type { Media } from '$lib/Data/AniList/media';
interface Props {
minutesWatched: number;
animeList: Media[] | undefined;
episodes: number;
}
let { minutesWatched, animeList, episodes }: Props = $props();
</script>
<div class="category-grid pure-category category top-category">
<div class="grid-item">
<b>Anime</b>
</div>
<div class="grid-item">
Time Watched: {((minutesWatched || 0) / 60 / 24).toFixed(2)} days
</div>
<div class="grid-item">
Completed: {animeList?.length || 0}
</div>
<div class="grid-item">Episodes: {episodes}</div>
</div>
|