summaryrefslogtreecommitdiff
path: root/hi-ui/src/lib/ActiveChannel.svelte
blob: 42aa53ffdef910a2e2bd44736c8358a74d4b319e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<script>
    import { activeChannel } from '../store';

    let channelName;

    activeChannel.subscribe((value) => {
        channelName = value ? value.name : 'none';
    });
</script>

<div>
    Active channel: {channelName}
</div>

<style>
</style>