Add render support

This commit is contained in:
Jon Staab
2024-09-24 14:12:38 -07:00
parent 148208f072
commit 605273d7c7
19 changed files with 355 additions and 25 deletions
+16
View File
@@ -0,0 +1,16 @@
<script lang="ts">
import {nip19} from 'nostr-tools'
import {displayProfile} from "@welshman/util"
import {deriveProfile} from "@welshman/app"
import Link from "@lib/components/Link.svelte"
import {nostr} from '@app/state'
export let value
const profile = deriveProfile(value.pubkey)
const nprofile = nip19.nprofileEncode(value)
</script>
<Link external href={nostr(nprofile)} class="link-content">
@{displayProfile($profile)}
</Link>