From 215b0c5cb2ff0ef0b2c7b5549704e23d651a4df9 Mon Sep 17 00:00:00 2001
From: Owen Jacobson <owen@grimoire.ca>
Date: Thu, 10 Oct 2024 21:51:10 -0400
Subject: Hoist the UI one step up further

---
 ui/lib/components/ChannelList.svelte | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
 create mode 100644 ui/lib/components/ChannelList.svelte

(limited to 'ui/lib/components/ChannelList.svelte')

diff --git a/ui/lib/components/ChannelList.svelte b/ui/lib/components/ChannelList.svelte
new file mode 100644
index 0000000..e0e5f06
--- /dev/null
+++ b/ui/lib/components/ChannelList.svelte
@@ -0,0 +1,18 @@
+<script>
+    import { channelsList } from '$lib/store';
+    import Channel from './Channel.svelte';
+
+    let channels;
+
+    channelsList.subscribe((value) => {
+        channels = value.channels;
+    });
+</script>
+
+<nav class="list-nav">
+    <ul>
+        {#each channels as channel}
+            <Channel {...channel} />
+        {/each}
+    </ul>
+</nav>
-- 
cgit v1.2.3

