From b135aac8531c1e1488147ad8c6f98eddbdbe0c99 Mon Sep 17 00:00:00 2001
From: HsiangNianian <admin@jyunko.cn>
Date: Mon, 17 Apr 2023 18:53:55 +0000
Subject: Initial commit

Created from https://vercel.com/new
---
 app/components/error.tsx | 11 +++++++++++
 1 file changed, 11 insertions(+)
 create mode 100644 app/components/error.tsx

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

diff --git a/app/components/error.tsx b/app/components/error.tsx
new file mode 100644
index 0000000..acf36d7
--- /dev/null
+++ b/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

