forked from coracle/flotilla
19 lines
456 B
Svelte
19 lines
456 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
|
|
url?: string
|
|
}
|
|
|
|
const {pubkey, url}: Props = $props()
|
|
|
|
const profile = deriveProfile(pubkey, removeUndefined([url]))
|
|
</script>
|
|
|
|
{#if $profile}
|
|
<ContentMinimal event={{content: $profile.about || "", tags: []}} />
|
|
{/if}
|