diff --git a/apps/console/src/pages/ErrorPage.tsx b/apps/console/src/pages/ErrorPage.tsx new file mode 100644 index 000000000..ef735a410 --- /dev/null +++ b/apps/console/src/pages/ErrorPage.tsx @@ -0,0 +1,35 @@ +import { AlertCircle } from "lucide-react"; +import { Link } from "react-router"; + +export interface ErrorPageProps { + error?: Error; + title?: string; + description?: string; +} + +export function ErrorPage({ + error, + title = "Something went wrong", + description = "An unexpected error occurred. Please try again later.", +}: ErrorPageProps) { + return ( +
+
+ +
+

{title}

+

{description}

+ {error?.message && ( +
+          {error.message}
+        
+ )} + + Return Home + +
+ ); +} \ No newline at end of file