Files
flotilla/src/app/components/RoomName.svelte
T
2025-11-10 14:59:15 -08:00

18 lines
295 B
Svelte

<script lang="ts">
import {deriveRoom} from "@app/core/state"
type Props = {
url: string
h: string
class?: string
}
const {url, h, ...props}: Props = $props()
const room = deriveRoom(url, h)
</script>
<span class="ellipsize {props.class}">
{$room?.name || h}
</span>