File
Blob: src/client/components/route-error-fallback.tsx
| 1 | import { AlertCircle } from "lucide-react"; |
| 2 | import { Button } from "@/client/components/ui/button"; |
| 3 | |
| 4 | export function RouteErrorFallback() { |
| 5 | return ( |
| 6 | <div className="flex min-h-screen items-center justify-center"> |
| 7 | <div className="text-center"> |
| 8 | <AlertCircle className="mx-auto mb-3 h-8 w-8 text-red-400" /> |
| 9 | <p className="mb-3 text-sm text-zinc-400">Something went wrong.</p> |
| 10 | <Button variant="secondary" size="sm" onClick={() => window.location.reload()}> |
| 11 | Reload |
| 12 | </Button> |
| 13 | </div> |
| 14 | </div> |
| 15 | ); |
| 16 | } |