2026-04-04 11:18:29 +00:00
|
|
|
<script lang="ts">
|
|
|
|
|
import {displayRelayUrl} from "@welshman/util"
|
2026-07-28 16:16:26 +00:00
|
|
|
import {splitRoomKey} from "@welshman/app"
|
2026-04-04 11:18:29 +00:00
|
|
|
import RoomNameWithImage from "@app/components/RoomNameWithImage.svelte"
|
|
|
|
|
|
|
|
|
|
type Props = {
|
|
|
|
|
value: string
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const {value}: Props = $props()
|
2026-07-28 16:16:26 +00:00
|
|
|
const [url, h] = splitRoomKey(value)
|
2026-04-04 11:18:29 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<div class="max-w-full overflow-hidden text-ellipsis flex flex-col">
|
|
|
|
|
<RoomNameWithImage {url} {h} />
|
|
|
|
|
<span class="text-primary text-sm">{displayRelayUrl(url)}<span> </span></span>
|
|
|
|
|
</div>
|