From 4838df315931bb883f704ec3e1abe2685f296cdf Mon Sep 17 00:00:00 2001
From: HsiangNianian <admin@jyunko.cn>
Date: Sat, 22 Apr 2023 19:52:26 +0800
Subject: 😀
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 docs/components/blog/Date.tsx | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 docs/components/blog/Date.tsx

(limited to 'docs/components/blog/Date.tsx')

diff --git a/docs/components/blog/Date.tsx b/docs/components/blog/Date.tsx
new file mode 100644
index 0000000..506eecc
--- /dev/null
+++ b/docs/components/blog/Date.tsx
@@ -0,0 +1,21 @@
+import { ReactNode } from "react";
+
+function Date({
+  children,
+  update = null,
+}: {
+  children: ReactNode;
+  update?: string;
+}) {
+  return (
+    <div className="text-sm mt-2 text-center text-gray-500 dark:text-gray-400 font-space-grotesk">
+      {children}
+
+      {update != null && (
+        <div className="text-xs mt-1 text-center">Last updated {update}</div>
+      )}
+    </div>
+  );
+}
+
+export default Date;
-- 
cgit v1.2.3-70-g09d2

