Files
flotilla/src/app/components/ProfileInfo.svelte
T
Jon Staab 7ec5a28d1f Add roles
2026-06-22 15:45:31 -07:00

20 lines
506 B
Svelte

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