HTML 77.2%
TypeScript 10.5%
Python 9.6%
JavaScript 2.5%
1'use client';2import Link from 'next/link';3import { Container } from '@/components/ui/section';45export default function Error({ error, reset }: { error: Error & { digest?: string }; reset: () => void }) {6 return (7 <Container className="py-20 md:py-28">8 <p className="eyebrow">Error</p>9 <h1 className="display mt-2 text-3xl md:text-5xl">Something went wrong.</h1>10 <p className="mt-4 max-w-xl text-ink-2">The page could not be rendered. The dataset itself is fine — this is usually the API being briefly unavailable.</p>11 {error.digest && <p className="mono mt-2 text-xs text-ink-3">ref {error.digest}</p>}12 <div className="mt-6 flex gap-3 text-sm">13 <button type="button" onClick={reset} className="bg-ink px-3 py-2 text-canvas hover:opacity-90">14 Try again15 </button>16 <Link href="/" className="border border-rule px-3 py-2 text-ink-2 hover:text-ink">17 Home18 </Link>19 </div>20 </Container>21 );22}23