Composio powers 1000+ toolkits, tool search, context management, authentication, and a sandboxed workbench to help you build AI agents that turn intent into action.
| 1 | 'use client'; |
| 2 | |
| 3 | import Link from 'next/link'; |
| 4 | |
| 5 | export default function Error({ |
| 6 | reset, |
| 7 | }: { |
| 8 | error: Error & { digest?: string }; |
| 9 | reset: () => void; |
| 10 | }) { |
| 11 | return ( |
| 12 | <div className="flex min-h-[85vh] flex-col items-center justify-center px-4"> |
| 13 | <div className="relative"> |
| 14 | <div className="absolute -inset-4 rounded-full bg-gradient-to-r from-fd-primary/20 via-fd-primary/5 to-transparent blur-2xl" /> |
| 15 | <h1 className="relative text-[120px] sm:text-[150px] font-bold leading-none tracking-tighter text-fd-foreground/10 select-none"> |
| 16 | 500 |
| 17 | </h1> |
| 18 | </div> |
| 19 | |
| 20 | <div className="mt-2 text-center max-w-md"> |
| 21 | <h2 className="text-xl font-semibold text-fd-foreground"> |
| 22 | Something went wrong |
| 23 | </h2> |
| 24 | <p className="mt-2 text-fd-muted-foreground text-sm"> |
| 25 | An unexpected error occurred. Try again or head back to the docs. |
| 26 | </p> |
| 27 | </div> |
| 28 | |
| 29 | <div className="mt-8 flex flex-wrap justify-center gap-3"> |
| 30 | <button |
| 31 | onClick={reset} |
| 32 | className="inline-flex items-center gap-2 rounded-lg bg-fd-primary px-4 py-2 text-sm font-medium text-fd-primary-foreground transition-colors hover:bg-fd-primary/90 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fd-ring focus-visible:ring-offset-2" |
| 33 | > |
| 34 | Try again |
| 35 | </button> |
| 36 | <Link |
| 37 | href="/" |
| 38 | className="inline-flex items-center gap-2 rounded-lg border border-fd-border bg-fd-background px-4 py-2 text-sm font-medium transition-colors hover:bg-fd-accent focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-fd-ring focus-visible:ring-offset-2" |
| 39 | > |
| 40 | Home |
| 41 | </Link> |
| 42 | </div> |
| 43 | </div> |
| 44 | ); |
| 45 | } |