Files
flotilla/src/app/components/ProfileCircle.svelte
T
2025-04-16 10:36:21 -07:00

17 lines
426 B
Svelte

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