elk/components/status/StatusReplyingTo.vue

22 lines
489 B
Vue
Raw Normal View History

2022-11-23 00:00:52 +00:00
<script setup lang="ts">
import type { Status } from 'masto'
const { status } = defineProps<{
status: Status
}>()
2022-11-24 05:47:14 +00:00
const account = await fetchAccount(status.inReplyToAccountId!)
2022-11-23 00:00:52 +00:00
</script>
<template>
2022-11-24 05:47:14 +00:00
<template v-if="account">
2022-11-23 00:00:52 +00:00
<div
flex="~ gap-1.5" items-center text-sm text-gray:85
2022-11-24 05:47:14 +00:00
:title="`Replying to ${getDisplayName(account)}`"
2022-11-23 00:00:52 +00:00
>
<div i-ri:reply-fill rotate-180 op50 />
2022-11-24 05:47:14 +00:00
<AccountInlineInfo :account="account" />
2022-11-23 00:00:52 +00:00
</div>
</template>
</template>