2025-10-30 22:36:14 +00:00
|
|
|
<script lang="ts">
|
2025-11-10 22:59:15 +00:00
|
|
|
import {deriveRoom} from "@app/core/state"
|
2025-10-30 22:36:14 +00:00
|
|
|
|
2025-11-10 22:59:15 +00:00
|
|
|
type Props = {
|
|
|
|
|
url: string
|
|
|
|
|
h: string
|
|
|
|
|
class?: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const {url, h, ...props}: Props = $props()
|
|
|
|
|
|
|
|
|
|
const room = deriveRoom(url, h)
|
2025-10-30 22:36:14 +00:00
|
|
|
</script>
|
|
|
|
|
|
2025-11-10 22:59:15 +00:00
|
|
|
<span class="ellipsize {props.class}">
|
|
|
|
|
{$room?.name || h}
|
2025-11-06 00:59:17 +00:00
|
|
|
</span>
|