mirror of
https://github.com/elk-zone/elk.git
synced 2024-12-14 15:11:55 +03:00
22 lines
613 B
Vue
22 lines
613 B
Vue
<script setup lang="ts">
|
|
import type { Account } from 'masto'
|
|
|
|
const { link = true, avatar = true } = defineProps<{
|
|
account: Account
|
|
link?: boolean
|
|
avatar?: boolean
|
|
}>()
|
|
</script>
|
|
|
|
<template>
|
|
<AccountHoverWrapper :account="account">
|
|
<NuxtLink
|
|
:to="link ? getAccountRoute(account) : undefined"
|
|
:class="link ? 'text-link-rounded ms-0 ps-0' : ''"
|
|
min-w-0 flex gap-2 items-center
|
|
>
|
|
<AccountAvatar v-if="avatar" :account="account" w-5 h-5 />
|
|
<AccountDisplayName :account="account" line-clamp-1 ws-pre-wrap break-all />
|
|
</NuxtLink>
|
|
</AccountHoverWrapper>
|
|
</template>
|