1
0
mirror of https://github.com/elk-zone/elk synced 2024-12-03 01:08:07 +09:00
elk/components/status/StatusEditIndicator.vue
2022-11-26 11:36:18 +08:00

21 lines
469 B
Vue

<script setup lang="ts">
import type { Status } from 'masto'
const { status } = defineProps<{
status: Status
}>()
const editedAt = $computed(() => status.editedAt)
const formatted = useFormattedDateTime(status.editedAt)
</script>
<template>
<CommonTooltip v-if="editedAt" :content="`Edited ${formatted}`">
<time
:title="editedAt"
:datetime="editedAt"
font-bold underline decoration-dashed
>&nbsp;*</time>
</CommonTooltip>
</template>