elk/components/account/AccountInlineInfo.vue
2022-11-27 12:30:21 +08:00

22 lines
569 B
Vue

<script setup lang="ts">
import type { Account } from 'masto'
const { link = true } = defineProps<{
account: Account
link?: boolean
}>()
</script>
<template>
<AccountHoverWrapper :account="account">
<NuxtLink
:to="link ? getAccountPath(account) : undefined"
:class="link ? 'text-link-rounded' : ''"
min-w-0 flex gap-1 items-center
>
<AccountAvatar :account="account" w-5 h-5 />
<ContentRich :content="getDisplayName(account, { rich: true })" :emojis="account.emojis" />
</NuxtLink>
</AccountHoverWrapper>
</template>