2022-11-15 15:56:11 +00:00
|
|
|
<script setup lang="ts">
|
2023-01-08 06:21:09 +00:00
|
|
|
import type { mastodon } from 'masto'
|
2022-11-15 15:56:11 +00:00
|
|
|
|
2022-11-22 13:03:36 +00:00
|
|
|
const { account } = defineProps<{
|
2023-01-08 06:21:09 +00:00
|
|
|
account: mastodon.v1.Account
|
2022-11-28 17:24:39 +00:00
|
|
|
hoverCard?: boolean
|
2023-01-10 07:49:49 +00:00
|
|
|
relationshipContext?: 'followedBy' | 'following'
|
2022-11-15 15:56:11 +00:00
|
|
|
}>()
|
2022-11-24 07:53:27 +00:00
|
|
|
|
|
|
|
cacheAccount(account)
|
2022-11-15 15:56:11 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2022-11-23 14:39:48 +00:00
|
|
|
<div flex justify-between hover:bg-active transition-100>
|
2022-11-28 17:24:39 +00:00
|
|
|
<AccountInfo
|
|
|
|
:account="account" hover p1 as="router-link"
|
|
|
|
:hover-card="hoverCard"
|
2022-11-30 21:38:18 +00:00
|
|
|
shrink
|
|
|
|
overflow-hidden
|
2022-11-30 17:15:18 +00:00
|
|
|
:to="getAccountRoute(account)"
|
2022-11-28 17:24:39 +00:00
|
|
|
/>
|
2023-10-22 16:11:00 +00:00
|
|
|
<slot>
|
|
|
|
<div h-full p1 shrink-0>
|
|
|
|
<AccountFollowButton :account="account" :context="relationshipContext" />
|
|
|
|
</div>
|
|
|
|
</slot>
|
2022-11-15 15:56:11 +00:00
|
|
|
</div>
|
|
|
|
</template>
|