aboutsummaryrefslogtreecommitdiff
path: root/apps/website/src/components
diff options
context:
space:
mode:
authorPauline <git@ethanlibs.co>2023-11-26 22:55:04 -0500
committerPauline <git@ethanlibs.co>2023-11-26 22:55:04 -0500
commit181547a25213bee8a20002e07344b957386c4d0f (patch)
tree1e1b4815166342406026478c00604cdd65e64660 /apps/website/src/components
parent955e820f1ccb59467a4f27c5c77738a7ebff193e (diff)
downloadNexus-181547a25213bee8a20002e07344b957386c4d0f.tar.gz
Nexus-181547a25213bee8a20002e07344b957386c4d0f.tar.bz2
Nexus-181547a25213bee8a20002e07344b957386c4d0f.zip
feat(build): transfer everything to esm/ts
Diffstat (limited to 'apps/website/src/components')
-rw-r--r--apps/website/src/components/base/FormattedDate.astro17
1 files changed, 17 insertions, 0 deletions
diff --git a/apps/website/src/components/base/FormattedDate.astro b/apps/website/src/components/base/FormattedDate.astro
new file mode 100644
index 0000000..1bcce73
--- /dev/null
+++ b/apps/website/src/components/base/FormattedDate.astro
@@ -0,0 +1,17 @@
+---
+interface Props {
+ date: Date;
+}
+
+const { date } = Astro.props;
+---
+
+<time datetime={date.toISOString()}>
+ {
+ date.toLocaleDateString('en-us', {
+ year: 'numeric',
+ month: 'short',
+ day: 'numeric',
+ })
+ }
+</time>