feat: short time ago

This commit is contained in:
Anthony Fu 2022-12-02 16:16:06 +08:00
parent 9b207de718
commit a9af7e4a09
4 changed files with 56 additions and 40 deletions

View file

@ -41,7 +41,7 @@ function go(evt: MouseEvent | KeyboardEvent) {
}
const createdAt = useFormattedDateTime(status.createdAt)
const timeAgoOptions = useTimeAgoOptions()
const timeAgoOptions = useTimeAgoOptions(true)
const timeago = useTimeAgo(() => status.createdAt, timeAgoOptions)
</script>