mirror of
https://github.com/elk-zone/elk.git
synced 2024-11-07 17:39:59 +00:00
21 lines
469 B
Vue
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
|
|
> *</time>
|
|
</CommonTooltip>
|
|
</template>
|