Files
flotilla/src/app/components/ProfileInfo.svelte
T
2025-10-17 12:21:22 -05:00

19 lines
444 B
Svelte

<script lang="ts">
import {removeNil} from "@welshman/lib"
import {deriveProfile} from "@welshman/app"
import ContentMinimal from "@app/components/ContentMinimal.svelte"
export type Props = {
pubkey: string
url?: string
}
const {pubkey, url}: Props = $props()
const profile = deriveProfile(pubkey, removeNil([url]))
</script>
{#if $profile}
<ContentMinimal event={{content: $profile.about || "", tags: []}} />
{/if}