From 4919f028c884a041da7ff098abb02389b4eac598 Mon Sep 17 00:00:00 2001
From: 简律纯 <hsiangnianian@outlook.com>
Date: Tue, 18 Apr 2023 03:02:17 +0800
Subject: ✨add envshare docs
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 envshare/app/components/error.tsx | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 envshare/app/components/error.tsx

(limited to 'envshare/app/components/error.tsx')

diff --git a/envshare/app/components/error.tsx b/envshare/app/components/error.tsx
new file mode 100644
index 0000000..acf36d7
--- /dev/null
+++ b/envshare/app/components/error.tsx
@@ -0,0 +1,11 @@
+type Props = {
+  message: string;
+};
+
+export const ErrorMessage: React.FC<Props> = ({ message }) => {
+  return (
+    <div className="flex items-center justify-center my-8 lg:my-16">
+      <span className="px-4 py-2 text-red-500 border rounded border-red-500/50 bg-red-500/10"> {message}</span>
+    </div>
+  );
+};
-- 
cgit v1.2.3-70-g09d2

