Files
flotilla/src/app/components/ProfileCircle.svelte
T
2025-04-15 15:07:54 -07:00

16 lines
369 B
Svelte

<script lang="ts">
import Avatar from "@lib/components/Avatar.svelte"
import {deriveAlias} from "@app/state"
type Props = {
pubkey: string
url?: string
} & Record<string, any>
const {pubkey, url, ...props}: Props = $props()
const alias = deriveAlias(pubkey, url)
</script>
<Avatar src={$alias?.profile?.picture} icon="user-circle" {...props} />