"use client"; import Link from "next/link"; import { useEffect } from "react"; /** * Root error boundary — the safety net for any uncaught error in the * app. Renders inside the root layout, so it inherits the same font * variables and design tokens as everything else. */ export default function ErrorPage({ error, reset, }: { error: Error & { digest?: string }; reset: () => void; }) { useEffect(() => { // Surface to the console for development; the Sentry-ready logger // in src/lib/sentry.ts can be wired in here when keys are configured. // eslint-disable-next-line no-console console.error("[app/error]", error); }, [error]); return (
); }