blob: b5c79bc83261320dfeb15c3c2220679c6e303cbf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<script lang="ts">
export let time: number | undefined = undefined;
export let count = -1337;
export let anime = false;
export let custom = '';
export let progress: undefined | number = undefined;
</script>
<summary>
{custom.length !== 0 ? custom : anime ? 'Anime' : 'Manga & Light Novels'} [{count === -1337
? '...'
: count}]
<small style="opacity: 50%">{time ? time.toFixed(3) : '...'}s</small>
<slot />
{#if progress !== undefined}
{progress.toFixed(0)}%
{/if}
</summary>
|