2024-09-24 21:12:38 +00:00
|
|
|
<script lang="ts">
|
|
|
|
|
import {displayProfile} from "@welshman/util"
|
|
|
|
|
import {deriveProfile} from "@welshman/app"
|
2024-10-09 19:45:13 +00:00
|
|
|
import Button from "@lib/components/Button.svelte"
|
|
|
|
|
import ProfileDetail from "@app/components/ProfileDetail.svelte"
|
|
|
|
|
import {pushDrawer} from "@app/modal"
|
2024-09-24 21:12:38 +00:00
|
|
|
|
|
|
|
|
export let value
|
|
|
|
|
|
|
|
|
|
const profile = deriveProfile(value.pubkey)
|
2024-10-09 19:45:13 +00:00
|
|
|
|
2024-10-11 20:25:45 +00:00
|
|
|
const onClick = (e: Event) => {
|
|
|
|
|
e.stopPropagation()
|
|
|
|
|
pushDrawer(ProfileDetail, {pubkey: value.pubkey})
|
|
|
|
|
}
|
2024-09-24 21:12:38 +00:00
|
|
|
</script>
|
|
|
|
|
|
2024-10-09 19:45:13 +00:00
|
|
|
<Button on:click={onClick} class="link-content">
|
2024-09-24 21:12:38 +00:00
|
|
|
@{displayProfile($profile)}
|
2024-10-09 19:45:13 +00:00
|
|
|
</Button>
|