Spaces:
Running
Running
deploy(hf): sync szl-holdings/nexus@00edebc993282efd5b43b0144b3d3d27ab43e264 derived COPY set
31b3c47 verified Download src/lib/error-component.tsx from SZLHOLDINGS/nexus: direct link, hf CLI and curl.
- Browser
- Download file 791 Bytes
-
https://huggingface.co/spaces/SZLHOLDINGS/nexus/resolve/main/src/lib/error-component.tsx
- Command line
-
hf download hf://spaces/SZLHOLDINGS/nexus/src/lib/error-component.tsx
-
curl -L -o error-component.tsx https://huggingface.co/spaces/SZLHOLDINGS/nexus/resolve/main/src/lib/error-component.tsx
791 Bytes
| import type { ErrorComponentProps } from "@tanstack/react-router"; | |
| import { TriangleAlert } from "lucide-react"; | |
| import { errorMessage } from "./error-message"; | |
| export function AppErrorComponent({ error }: ErrorComponentProps) { | |
| return ( | |
| <main | |
| className={ | |
| "flex min-h-screen flex-col items-center justify-center gap-3 px-6 text-center " + | |
| "bg-zinc-50 text-zinc-900 dark:bg-zinc-950 dark:text-zinc-50" | |
| } | |
| > | |
| <span className="text-red-500" aria-hidden="true"> | |
| <TriangleAlert className="size-10" strokeWidth={2} /> | |
| </span> | |
| <h1 className="text-lg font-semibold">Something went wrong</h1> | |
| <p className="max-w-md text-sm break-words text-zinc-500 dark:text-zinc-400"> | |
| {errorMessage(error)} | |
| </p> | |
| </main> | |
| ); | |
| } | |