flotilla/src/app/components/ProfileAbout.svelte
2026-07-29 15:52:13 -07:00

19 lines
499 B
Svelte

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