2022-11-13 14:34:43 +09:00
|
|
|
<script setup lang="ts">
|
2022-11-14 11:20:07 +09:00
|
|
|
import type { Account } from 'masto'
|
2022-11-13 14:34:43 +09:00
|
|
|
|
2022-11-23 12:48:01 +09:00
|
|
|
const { account, link = true, fullServer = false } = defineProps<{
|
2022-11-13 14:34:43 +09:00
|
|
|
account: Account
|
2022-11-21 19:16:04 +09:00
|
|
|
link?: boolean
|
2022-11-23 12:48:01 +09:00
|
|
|
fullServer?: boolean
|
2022-11-25 19:54:49 +09:00
|
|
|
hover?: boolean
|
2022-11-13 14:34:43 +09:00
|
|
|
}>()
|
2022-11-23 12:48:01 +09:00
|
|
|
|
2022-11-24 23:20:50 +09:00
|
|
|
const accountHandle = $(useAccountHandle(account, fullServer))
|
2022-11-13 14:34:43 +09:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2022-11-23 16:46:34 +09:00
|
|
|
<div flex gap-3>
|
|
|
|
<div>
|
2022-11-24 07:40:35 +09:00
|
|
|
<NuxtLink :to="link ? getAccountPath(account) : null">
|
2022-11-25 19:54:49 +09:00
|
|
|
<AccountAvatar :account="account" :hover="hover" w-12 h-12 />
|
2022-11-14 11:20:07 +09:00
|
|
|
</NuxtLink>
|
2022-11-13 14:34:43 +09:00
|
|
|
</div>
|
2022-11-24 07:40:35 +09:00
|
|
|
<NuxtLink flex flex-col :to="link ? getAccountPath(account) : null">
|
2022-11-25 16:12:49 +09:00
|
|
|
<ContentRichSetup font-bold :content="getDisplayName(account)" :emojis="account.emojis" />
|
2022-11-21 15:55:31 +09:00
|
|
|
<p op35 text-sm>
|
2022-11-24 23:20:50 +09:00
|
|
|
{{ accountHandle }}
|
2022-11-13 14:34:43 +09:00
|
|
|
</p>
|
2022-11-23 09:00:52 +09:00
|
|
|
<slot name="bottom" />
|
2022-11-14 11:20:07 +09:00
|
|
|
</NuxtLink>
|
2022-11-14 11:56:48 +09:00
|
|
|
<slot />
|
2022-11-13 14:34:43 +09:00
|
|
|
</div>
|
|
|
|
</template>
|