flotilla/src/app/components/ContentMention.svelte

15 lines
387 B
Svelte
Raw Normal View History

2024-09-24 21:12:38 +00:00
<script lang="ts">
import {displayProfile} from "@welshman/util"
import {deriveProfile} from "@welshman/app"
import Link from "@lib/components/Link.svelte"
import {pubkeyLink} from "@app/state"
2024-09-24 21:12:38 +00:00
export let value
const profile = deriveProfile(value.pubkey)
</script>
<Link external href={pubkeyLink(value.pubkey)} class="link-content">
2024-09-24 21:12:38 +00:00
@{displayProfile($profile)}
</Link>