forked from coracle/flotilla
21 lines
522 B
Svelte
21 lines
522 B
Svelte
<script lang="ts">
|
|
import {displayRelayUrl} from "@welshman/util"
|
|
import Avatar from "@lib/components/Avatar.svelte"
|
|
import {deriveRelay} from "@welshman/app"
|
|
import RemoteControllerMinimalistic from "@assets/icons/remote-controller-minimalistic.svg?dataurl"
|
|
|
|
interface Props {
|
|
url?: string
|
|
}
|
|
|
|
const {url = ""}: Props = $props()
|
|
|
|
const relay = deriveRelay(url)
|
|
</script>
|
|
|
|
<Avatar
|
|
icon={RemoteControllerMinimalistic}
|
|
class="!h-10 !w-10"
|
|
alt={displayRelayUrl(url)}
|
|
src={$relay?.profile?.icon} />
|