mirror of
https://github.com/elk-zone/elk
synced 2024-12-03 01:08:07 +09: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>
|