Files
flotilla/src/app/components/RoomName.svelte
T
mplorentz ce30820108 feature/23-voice-room/poc (#93)
Add voice rooms

Co-authored-by: Matt Lorentz <mplorentz@noreply.coracle.social>
Co-committed-by: Matt Lorentz <mplorentz@noreply.coracle.social>
2026-03-16 20:38:05 +00:00

18 lines
303 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 min-w-0 {props.class}">
{$room?.name || h}
</span>