1
0
elk/components/status/StatusReplyingTo.vue

22 lines
489 B
Vue
Raw Normal View History

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