flotilla/src/app/components/SpaceAvatar.svelte

20 lines
422 B
Svelte
Raw Normal View History

<script lang="ts">
import {displayRelayUrl} from "@welshman/util"
import Avatar from "@lib/components/Avatar.svelte"
import {deriveRelay} from "@welshman/app"
2025-02-04 00:37:14 +00:00
interface Props {
url?: string
}
const {url = ""}: Props = $props()
const relay = deriveRelay(url)
</script>
<Avatar
2024-10-04 00:04:00 +00:00
icon="remote-controller-minimalistic"
2024-10-09 21:19:27 +00:00
class="!h-10 !w-10"
alt={displayRelayUrl(url)}
2024-10-04 00:04:00 +00:00
src={$relay?.profile?.icon} />