1
0
Fork 1
mirror of https://github.com/elk-zone/elk.git synced 2024-11-07 17:39:59 +00:00
elk/components/account/AccountInfo.vue
2022-11-21 16:07:55 +01:00

26 lines
601 B
Vue

<script setup lang="ts">
import type { Account } from 'masto'
const { link = true } = defineProps<{
account: Account
link?: boolean
}>()
</script>
<template>
<div flex gap-2>
<div p1>
<NuxtLink :to="link ? `/@${account.acct}` : null">
<img :src="account.avatar" rounded w-10 h-10 bg-gray:10>
</NuxtLink>
</div>
<NuxtLink flex flex-col :to="link ? `/@${account.acct}` : null">
<CommonRichContent font-bold :content="getDisplayName(account)" />
<p op35 text-sm>
@{{ account.acct }}
</p>
</NuxtLink>
<slot />
</div>
</template>