2024-10-01 21:55:33 +00:00
|
|
|
<script lang="ts">
|
|
|
|
|
import Content from "@app/components/Content.svelte"
|
2025-04-15 22:45:48 +00:00
|
|
|
import {deriveAliasedProfile} from "@app/state"
|
2024-10-01 21:55:33 +00:00
|
|
|
|
2025-04-15 18:03:27 +00:00
|
|
|
export type Props = {
|
|
|
|
|
pubkey: string
|
|
|
|
|
url?: string
|
|
|
|
|
}
|
2024-10-01 21:55:33 +00:00
|
|
|
|
2025-04-15 18:03:27 +00:00
|
|
|
const {pubkey, url}: Props = $props()
|
|
|
|
|
|
2025-04-15 22:45:48 +00:00
|
|
|
const profile = deriveAliasedProfile(pubkey, url)
|
2024-10-01 21:55:33 +00:00
|
|
|
</script>
|
|
|
|
|
|
2025-04-15 22:45:48 +00:00
|
|
|
{#if $profile}
|
|
|
|
|
<Content event={{content: $profile.about, tags: []}} hideMediaAtDepth={0} />
|
2024-10-01 21:55:33 +00:00
|
|
|
{/if}
|