From 1d8b828d1bbe0e0daa64f6fc2689799c7169afa0 Mon Sep 17 00:00:00 2001
From: Kit La Touche <kit@transneptune.net>
Date: Thu, 19 Sep 2024 23:26:39 -0400
Subject: Add basic browser client

Using Svelte.

No tests, no linting, yet.

This is just starting to get familiar with things.

You'll still have to run the dev server and the dev client builder each
in their own terminals.

Enjoy!
---
 hi-ui/src/lib/ActiveChannel.svelte | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 hi-ui/src/lib/ActiveChannel.svelte

(limited to 'hi-ui/src/lib/ActiveChannel.svelte')

diff --git a/hi-ui/src/lib/ActiveChannel.svelte b/hi-ui/src/lib/ActiveChannel.svelte
new file mode 100644
index 0000000..42aa53f
--- /dev/null
+++ b/hi-ui/src/lib/ActiveChannel.svelte
@@ -0,0 +1,16 @@
+<script>
+    import { activeChannel } from '../store';
+
+    let channelName;
+
+    activeChannel.subscribe((value) => {
+        channelName = value ? value.name : 'none';
+    });
+</script>
+
+<div>
+    Active channel: {channelName}
+</div>
+
+<style>
+</style>
-- 
cgit v1.2.3

