2024-05-12 04:33:40 +02:00
|
|
|
<template>
|
2024-07-22 01:23:29 +02:00
|
|
|
<NuxtLink :href="`/@${account?.acct}`" class="mb-4 flex flex-row gap-2 items-center text-gray-300 opacity-70">
|
2024-05-12 04:33:40 +02:00
|
|
|
<Skeleton :enabled="!account" shape="rect" class="!h-6" :min-width="40" :max-width="100" width-unit="%">
|
2024-05-12 11:04:00 +02:00
|
|
|
<iconify-icon icon="tabler:arrow-back-up" width="1.5rem" height="1.5rem" aria-hidden="true" />
|
2024-05-13 05:19:53 +02:00
|
|
|
<span class="shrink-0">Replying to</span>
|
2024-06-21 04:09:09 +02:00
|
|
|
<Avatar v-if="account?.avatar" :src="account?.avatar" :alt="`${account?.acct}'s avatar'`"
|
2024-05-13 05:19:53 +02:00
|
|
|
class="size-5 shrink-0 rounded ring-1 ring-white/10" />
|
|
|
|
|
<strong class="line-clamp-1">{{ account?.display_name || account?.acct }}</strong>
|
2024-05-12 04:33:40 +02:00
|
|
|
</Skeleton>
|
|
|
|
|
</NuxtLink>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script lang="ts" setup>
|
2024-06-21 04:09:09 +02:00
|
|
|
import Avatar from "~/components/avatars/avatar.vue";
|
|
|
|
|
import Skeleton from "~/components/skeleton/Skeleton.vue";
|
|
|
|
|
|
2024-05-12 04:33:40 +02:00
|
|
|
const props = defineProps<{
|
|
|
|
|
account_id: string | null;
|
|
|
|
|
}>();
|
|
|
|
|
|
|
|
|
|
const account = useAccount(client, props.account_id);
|
|
|
|
|
</script>
|