aboutsummaryrefslogtreecommitdiff
path: root/src/lib/List/ListTitle.svelte
blob: 72684b92d456ea8f4e45877d2482c6d706a2a144 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<script lang="ts">
	export let time: number | undefined = undefined;
	export let count = -1337;
	export let anime = false;
	export let custom = '';
</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 />
</summary>