flotilla/src/app/components/ChannelName.svelte

13 lines
241 B
Svelte
Raw Normal View History

2024-12-10 01:04:39 +00:00
<script lang="ts">
import {GENERAL, channelsById, makeChannelId} from "@app/state"
export let url
export let room
</script>
{#if room === GENERAL}
general
{:else}
{$channelsById.get(makeChannelId(url, room))?.name || room}
{/if}