2026-02-08 23:18:21 -05:00
|
|
|
'use client';
|
|
|
|
|
|
|
|
|
|
export default function Error({
|
|
|
|
|
reset,
|
|
|
|
|
}: {
|
|
|
|
|
error: Error & { digest?: string };
|
|
|
|
|
reset: () => void;
|
|
|
|
|
}) {
|
|
|
|
|
return (
|
2026-05-25 09:49:40 -04:00
|
|
|
<div className="page-frame flex min-h-[60vh] flex-col items-center justify-center px-6 text-center">
|
|
|
|
|
<h1 className="mb-4 text-4xl font-medium text-ink">
|
2026-02-08 23:18:21 -05:00
|
|
|
Something went wrong
|
|
|
|
|
</h1>
|
2026-05-25 09:49:40 -04:00
|
|
|
<p className="mb-8 text-lg text-muted">
|
|
|
|
|
Refresh the page or try again.
|
2026-02-08 23:18:21 -05:00
|
|
|
</p>
|
|
|
|
|
<button
|
|
|
|
|
onClick={reset}
|
2026-05-25 09:49:40 -04:00
|
|
|
className="rounded-md border border-line bg-paper-strong px-4 py-2 text-sm font-medium text-ink transition-colors hover:border-line-strong hover:text-accent"
|
2026-02-08 23:18:21 -05:00
|
|
|
>
|
|
|
|
|
Try again
|
|
|
|
|
</button>
|
|
|
|
|
</div>
|
|
|
|
|
);
|
|
|
|
|
}
|