spb/cancerindex
Public
TypeScript 97.2%
SQL 1.5%
CSS 0.6%
JavaScript 0.5%
1'use client';23export default function ErrorPage({ error, reset }: { error: Error & { digest?: string }; reset: () => void }) {4 return (5 <div className="py-10">6 <p className="ci-kicker mb-2">Error</p>7 <h1 className="text-3xl">Something went wrong rendering this page</h1>8 <p className="mt-2 max-w-2xl text-[14px] text-ink-2">The database may be unreachable or the query failed. Nothing was invented to fill the gap; please retry.</p>9 {error.digest ? <p className="ci-mono mt-2 text-[12px] text-ink-3">digest {error.digest}</p> : null}10 <button type="button" onClick={reset} className="mt-4 border border-rule-strong px-3 py-1.5 text-[14px] hover:border-accent hover:text-accent">11 Retry12 </button>13 </div>14 );15}16