2024-09-24 21:12:38 +00:00
|
|
|
<script lang="ts">
|
|
|
|
|
import {displayProfile} from "@welshman/util"
|
|
|
|
|
import {deriveProfile} from "@welshman/app"
|
2024-12-16 20:54:17 +00:00
|
|
|
import Button from "@lib/components/Button.svelte"
|
|
|
|
|
import ProfileDetail from "@app/components/ProfileDetail.svelte"
|
|
|
|
|
import {pushModal} from "@app/modal"
|
2024-09-24 21:12:38 +00:00
|
|
|
|
2025-02-04 00:37:14 +00:00
|
|
|
let {value} = $props()
|
2024-09-24 21:12:38 +00:00
|
|
|
|
|
|
|
|
const profile = deriveProfile(value.pubkey)
|
2024-12-16 20:54:17 +00:00
|
|
|
|
|
|
|
|
const openProfile = () => pushModal(ProfileDetail, {pubkey: value.pubkey})
|
2024-09-24 21:12:38 +00:00
|
|
|
</script>
|
|
|
|
|
|
2024-12-16 20:54:17 +00:00
|
|
|
<Button on:click={openProfile} class="link-content">
|
2024-09-24 21:12:38 +00:00
|
|
|
@{displayProfile($profile)}
|
2024-12-16 20:54:17 +00:00
|
|
|
</Button>
|