diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2024-10-10 21:51:10 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2024-10-10 21:52:26 -0400 |
| commit | 215b0c5cb2ff0ef0b2c7b5549704e23d651a4df9 (patch) | |
| tree | 356484ce699539f2937b768d1a1c9b83f0c7a402 /ui/lib/components/ChannelList.svelte | |
| parent | 4401dce2b5545ce8117818812d8e3c8919f5f7fd (diff) | |
Hoist the UI one step up further
Diffstat (limited to 'ui/lib/components/ChannelList.svelte')
| -rw-r--r-- | ui/lib/components/ChannelList.svelte | 18 |
1 files changed, 18 insertions, 0 deletions
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> |
