forked from coracle/flotilla
18 lines
521 B
Svelte
18 lines
521 B
Svelte
<script lang="ts">
|
|
import {displayProfile} from "@welshman/util"
|
|
import {deriveProfile} from "@welshman/app"
|
|
import Button from "@lib/components/Button.svelte"
|
|
import ProfileDetail from "@app/components/ProfileDetail.svelte"
|
|
import {pushModal} from "@app/modal"
|
|
|
|
export let value
|
|
|
|
const profile = deriveProfile(value.pubkey)
|
|
|
|
const openProfile = () => pushModal(ProfileDetail, {pubkey: value.pubkey})
|
|
</script>
|
|
|
|
<Button on:click={openProfile} class="link-content">
|
|
@{displayProfile($profile)}
|
|
</Button>
|