From f44fc10a22032241e7b4a09961c52eb99fae134b Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Tue, 26 Sep 2023 16:53:52 -0700
Subject: refactor(title): move out of due

---
 src/lib/List/ListTitle.svelte | 12 ++++++++++++
 1 file changed, 12 insertions(+)
 create mode 100644 src/lib/List/ListTitle.svelte

(limited to 'src/lib/List/ListTitle.svelte')

diff --git a/src/lib/List/ListTitle.svelte b/src/lib/List/ListTitle.svelte
new file mode 100644
index 00000000..2aa580d3
--- /dev/null
+++ b/src/lib/List/ListTitle.svelte
@@ -0,0 +1,12 @@
+<script lang="ts">
+	export let time: number | string = '...';
+	export let count: number | string = '...';
+	export let anime = false;
+	export let custom = '';
+</script>
+
+<summary>
+	{custom.length !== 0 ? custom : anime ? 'Anime' : 'Manga & Light Novels'} [{count}]
+	<small style="opacity: 50%">{time}s</small>
+	<slot />
+</summary>
-- 
cgit v1.2.3

