forked from coracle/flotilla
ce30820108
Add voice rooms Co-authored-by: Matt Lorentz <mplorentz@noreply.coracle.social> Co-committed-by: Matt Lorentz <mplorentz@noreply.coracle.social>
18 lines
303 B
Svelte
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>
|