flotilla/src/app/editor/RoomSuggestion.svelte
2026-07-29 15:52:13 -07:00

17 lines
504 B
Svelte

<script lang="ts">
import {displayRelayUrl} from "@welshman/util"
import {splitRoomKey} from "@welshman/app"
import RoomNameWithImage from "@app/components/RoomNameWithImage.svelte"
type Props = {
value: string
}
const {value}: Props = $props()
const [url, h] = splitRoomKey(value)
</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>