mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-20 07:49:57 +00:00
22 lines
590 B
Vue
22 lines
590 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 ? getAccountRoute(account) : undefined"
|
|
:class="link ? 'text-link-rounded ml-0 pl-0' : ''"
|
|
min-w-0 flex gap-1 items-center
|
|
>
|
|
<AccountAvatar :account="account" w-5 h-5 />
|
|
<ContentRich ws-nowrap :content="getDisplayName(account, { rich: true })" :emojis="account.emojis" />
|
|
</NuxtLink>
|
|
</AccountHoverWrapper>
|
|
</template>
|