2022-11-25 16:34:53 +00:00
|
|
|
<script setup lang="ts">
|
2022-11-26 03:36:18 +00:00
|
|
|
import type { Status } from 'masto'
|
2022-11-25 16:34:53 +00:00
|
|
|
|
2022-11-26 03:36:18 +00:00
|
|
|
const { status } = defineProps<{
|
|
|
|
status: Status
|
|
|
|
}>()
|
|
|
|
|
|
|
|
const editedAt = $computed(() => status.editedAt)
|
|
|
|
const formatted = useFormattedDateTime(status.editedAt)
|
2022-11-25 16:34:53 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
<template>
|
2022-11-26 03:36:18 +00:00
|
|
|
<CommonTooltip v-if="editedAt" :content="`Edited ${formatted}`">
|
|
|
|
<time
|
|
|
|
:title="editedAt"
|
|
|
|
:datetime="editedAt"
|
|
|
|
font-bold underline decoration-dashed
|
|
|
|
> *</time>
|
2022-11-25 16:34:53 +00:00
|
|
|
</CommonTooltip>
|
|
|
|
</template>
|