1
0
mirror of https://github.com/elk-zone/elk synced 2024-12-01 08:18:07 +09:00
elk/components/status/StatusBody.vue

25 lines
543 B
Vue

<script setup lang="ts">
import type { Status } from 'masto'
const { status, withAction = true } = defineProps<{
status: Status
withAction?: boolean
}>()
const { translation } = useTranslation(status)
</script>
<template>
<div class="status-body" whitespace-pre-wrap break-words :class="{ 'with-action': withAction }">
<ContentRich
:content="translation.visible ? translation.text : status.content"
:emojis="status.emojis"
/>
</div>
</template>
<style>
.status-body.with-action p {
cursor: pointer;
}
</style>