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