From f257d3c7e22f929965e71e5eec4c2ec5254e696f Mon Sep 17 00:00:00 2001
From: HombreLaser <sebastian-440@live.com>
Date: Sat, 27 May 2023 01:38:46 -0600
Subject: Añade página de error
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

---
 src/components/error_page.tsx | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)
 create mode 100644 src/components/error_page.tsx

(limited to 'src/components/error_page.tsx')

diff --git a/src/components/error_page.tsx b/src/components/error_page.tsx
new file mode 100644
index 0000000..3c479be
--- /dev/null
+++ b/src/components/error_page.tsx
@@ -0,0 +1,22 @@
+import { useRouteError } from "react-router-dom";
+import "./stylesheets/shared.css";
+import MainContentLayout from "./main_content_layout";
+
+export default function ErrorPage() {
+  const error = useRouteError();
+
+  return(
+    <MainContentLayout>
+      <div className="flex flex-col justify-center my-2">
+        <div>
+          <h1 className="text-3xl">
+            Error {error.status}
+          </h1>
+        </div>
+        <div className="text-xl">
+          {error.error.message || error.statusText}
+        </div>
+      </div>
+    </MainContentLayout>
+  );
+}
\ No newline at end of file
-- 
cgit v1.2.3

