misc: Organize components

This commit is contained in:
Xyphyn committed 2023-07-03 12:35:49 -07:00
1 parent a5460a03b4
commit 7d3f29d9eb
17 files changed
+24 -22

No files matched your search

@@ -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.getTime() - Date.now()) / 1000 / 60 / 60 / 24),
'days'
)
</script>
{rtf}