elk/components/account/AccountCard.vue

24 lines
490 B
Vue
Raw Normal View History

<script setup lang="ts">
import type { Account } from 'masto'
const { account } = defineProps<{
account: Account
2022-11-28 18:24:39 +01:00
hoverCard?: boolean
}>()
2022-11-24 08:53:27 +01:00
cacheAccount(account)
</script>
<template>
2022-11-23 15:39:48 +01:00
<div flex justify-between hover:bg-active transition-100>
2022-11-28 18:24:39 +01:00
<AccountInfo
:account="account" hover p1 as="router-link"
:hover-card="hoverCard"
:to="getAccountPath(account)"
/>
2022-11-22 23:40:20 +01:00
<div h-full p1>
<AccountFollowButton :account="account" />
</div>
</div>
</template>