Spaces:
Build error
Build error
Download app/submit/error.tsx from Jacksuyu/requestsolution: direct link, hf CLI and curl.
- Browser
- Download file 902 Bytes
-
https://huggingface.co/spaces/Jacksuyu/requestsolution/resolve/main/app/submit/error.tsx
- Command line
-
hf download hf://spaces/Jacksuyu/requestsolution/app/submit/error.tsx
-
curl -L -o error.tsx https://huggingface.co/spaces/Jacksuyu/requestsolution/resolve/main/app/submit/error.tsx
902 Bytes
| "use client"; | |
| import Link from "next/link"; | |
| export default function SubmitError({ | |
| error, | |
| reset, | |
| }: { | |
| error: Error & { digest?: string }; | |
| reset: () => void; | |
| }) { | |
| return ( | |
| <div className="text-center py-20"> | |
| <h1 className="text-2xl font-bold text-gray-900 mb-4"> | |
| Submission error | |
| </h1> | |
| <p className="text-gray-500 mb-8"> | |
| {error.message || "Something went wrong while submitting your idea."} | |
| </p> | |
| <div className="flex gap-4 justify-center"> | |
| <button | |
| onClick={reset} | |
| className="px-6 py-2 bg-indigo-600 text-white rounded-lg font-medium hover:bg-indigo-700" | |
| > | |
| Try again | |
| </button> | |
| <Link | |
| href="/" | |
| className="px-6 py-2 bg-gray-100 text-gray-700 rounded-lg font-medium hover:bg-gray-200" | |
| > | |
| Back to home | |
| </Link> | |
| </div> | |
| </div> | |
| ); | |
| } | |