From c4c55a93bc6af8b15f45225169758e08ff1b13cd Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Mon, 17 Jul 2023 20:42:50 -0400 Subject: Initial rewrite --- components/updates/PostPreview.js | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 components/updates/PostPreview.js (limited to 'components/updates/PostPreview.js') diff --git a/components/updates/PostPreview.js b/components/updates/PostPreview.js new file mode 100644 index 0000000..ca261c0 --- /dev/null +++ b/components/updates/PostPreview.js @@ -0,0 +1,15 @@ +import Link from "next/link"; +import DateFormatter from '@/components/updates/DateFormatter' + +export default function PostPreview(props) { + return ( +
+ +

{props.title}

+ + By {props.author} +

{props.description}

+

Posted on {DateFormatter(props.date)}

+
+ ) +} -- cgit v1.2.3