feat: Add comment trees

This commit is contained in:
Xyphyn committed 2023-06-30 19:44:30 -07:00
1 parent 83608fdaa6
commit 09d86dd721
13 files changed
+325 -91

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
<script lang="ts">
export let date: Date
const rtf = new Intl.RelativeTimeFormat('en', {
numeric: 'auto',
style: 'short',
}).format(
Math.floor((Date.now() - date.getTime()) / 1000 / 60 / 60 / 24),
'days'
)
</script>
{rtf}