2022-11-13 06:34:43 +01:00
|
|
|
<script setup lang="ts">
|
2022-11-14 03:20:07 +01:00
|
|
|
import type { Account } from 'masto'
|
2022-11-13 06:34:43 +01:00
|
|
|
|
2022-11-21 11:16:04 +01:00
|
|
|
const { link = true } = defineProps<{
|
2022-11-13 06:34:43 +01:00
|
|
|
account: Account
|
2022-11-21 11:16:04 +01:00
|
|
|
link?: boolean
|
2022-11-13 06:34:43 +01:00
|
|
|
}>()
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<div flex gap-2>
|
|
|
|
<div p1>
|
2022-11-21 11:16:04 +01:00
|
|
|
<NuxtLink :to="link ? `/@${account.acct}` : null">
|
2022-11-23 00:42:20 +01:00
|
|
|
<AccountAvatar :account="account" w-10 h-10 />
|
2022-11-14 03:20:07 +01:00
|
|
|
</NuxtLink>
|
2022-11-13 06:34:43 +01:00
|
|
|
</div>
|
2022-11-21 11:16:04 +01:00
|
|
|
<NuxtLink flex flex-col :to="link ? `/@${account.acct}` : null">
|
2022-11-23 00:42:20 +01:00
|
|
|
<CommonRichContent font-bold :content="getDisplayName(account)" :emojis="account.emojis" />
|
2022-11-21 07:55:31 +01:00
|
|
|
<p op35 text-sm>
|
2022-11-13 06:34:43 +01:00
|
|
|
@{{ account.acct }}
|
|
|
|
</p>
|
2022-11-14 03:20:07 +01:00
|
|
|
</NuxtLink>
|
2022-11-14 03:56:48 +01:00
|
|
|
<slot />
|
2022-11-13 06:34:43 +01:00
|
|
|
</div>
|
|
|
|
</template>
|