2022-11-28 09:51:15 +00:00
|
|
|
<script setup lang="ts">
|
2023-01-08 06:21:09 +00:00
|
|
|
import type { mastodon } from 'masto'
|
2022-11-28 09:51:15 +00:00
|
|
|
|
2023-01-09 11:24:26 +00:00
|
|
|
defineProps<{
|
2023-01-08 06:21:09 +00:00
|
|
|
account: mastodon.v1.Account
|
2022-11-28 09:51:15 +00:00
|
|
|
}>()
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
|
|
|
<div flex gap-5>
|
2022-12-14 15:56:48 +00:00
|
|
|
<NuxtLink
|
|
|
|
:to="getAccountRoute(account)"
|
2023-01-09 08:48:39 +00:00
|
|
|
replace
|
2022-12-14 15:56:48 +00:00
|
|
|
text-secondary
|
|
|
|
exact-active-class="text-primary"
|
|
|
|
>
|
2022-11-28 10:14:58 +00:00
|
|
|
<template #default="{ isExactActive }">
|
2023-01-09 11:24:26 +00:00
|
|
|
<CommonLocalizedNumber
|
2023-01-09 20:20:26 +00:00
|
|
|
keypath="account_posts_count"
|
2023-01-09 11:24:26 +00:00
|
|
|
:count="account.statusesCount"
|
|
|
|
font-bold
|
|
|
|
:class="isExactActive ? 'text-primary' : 'text-base'"
|
|
|
|
/>
|
2022-11-28 10:14:58 +00:00
|
|
|
</template>
|
2022-11-28 09:51:15 +00:00
|
|
|
</NuxtLink>
|
2022-12-14 15:56:48 +00:00
|
|
|
<NuxtLink
|
|
|
|
:to="getAccountFollowingRoute(account)"
|
2023-01-09 08:48:39 +00:00
|
|
|
replace
|
2022-12-14 15:56:48 +00:00
|
|
|
text-secondary exact-active-class="text-primary"
|
|
|
|
>
|
2022-11-28 10:14:58 +00:00
|
|
|
<template #default="{ isExactActive }">
|
2023-01-09 11:24:26 +00:00
|
|
|
<CommonLocalizedNumber
|
2023-01-09 20:20:26 +00:00
|
|
|
keypath="account_following_count"
|
2023-01-09 11:24:26 +00:00
|
|
|
:count="account.followingCount"
|
|
|
|
font-bold
|
|
|
|
:class="isExactActive ? 'text-primary' : 'text-base'"
|
|
|
|
/>
|
2022-11-28 10:14:58 +00:00
|
|
|
</template>
|
2022-11-28 09:51:15 +00:00
|
|
|
</NuxtLink>
|
2022-12-14 15:56:48 +00:00
|
|
|
<NuxtLink
|
|
|
|
:to="getAccountFollowersRoute(account)"
|
2023-01-09 08:48:39 +00:00
|
|
|
replace
|
2022-12-14 15:56:48 +00:00
|
|
|
text-secondary exact-active-class="text-primary"
|
|
|
|
>
|
2022-11-28 10:14:58 +00:00
|
|
|
<template #default="{ isExactActive }">
|
2023-01-09 11:24:26 +00:00
|
|
|
<CommonLocalizedNumber
|
2023-01-09 20:20:26 +00:00
|
|
|
keypath="account_followers_count"
|
2023-01-09 11:24:26 +00:00
|
|
|
:count="account.followersCount"
|
|
|
|
font-bold
|
|
|
|
:class="isExactActive ? 'text-primary' : 'text-base'"
|
|
|
|
/>
|
2022-11-28 10:14:58 +00:00
|
|
|
</template>
|
2022-11-28 09:51:15 +00:00
|
|
|
</NuxtLink>
|
|
|
|
</div>
|
|
|
|
</template>
|