mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-24 18:26:17 +03:00
22 lines
636 B
Vue
22 lines
636 B
Vue
<script setup lang="ts">
|
|
import type { Status } from 'masto'
|
|
|
|
const { status } = defineProps<{
|
|
status: Status
|
|
}>()
|
|
|
|
const account = useAccountById(status.inReplyToAccountId!)
|
|
</script>
|
|
|
|
<template>
|
|
<NuxtLink
|
|
v-if="status.inReplyToId"
|
|
flex="~ wrap" items-center text-sm text-secondary
|
|
:to="getStatusInReplyToRoute(status)"
|
|
:title="account ? `Replying to ${getDisplayName(account)}` : 'Replying to someone'"
|
|
>
|
|
<div i-ri:reply-fill rotate-180 text-secondary-light class="mr-1.5" />
|
|
<AccountInlineInfo v-if="account" :account="account" :link="false" />
|
|
<span v-else>Someone</span>
|
|
</NuxtLink>
|
|
</template>
|