Files
flotilla/src/app/components/ProfileInfo.svelte
2025-06-09 13:48:46 -07:00

19 lines
444 B
Svelte

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