"use client"; import Link from "next/link"; import { useEffect } from "react"; /** * Route-segment error boundary. Renders inside the root layout (so the shell * stays), shows a friendly card, and offers a reset. The raw error is logged to * the console, never shown to the user. */ export default function ErrorPage({ error, reset, }: { error: Error & { digest?: string }; reset: () => void; }) { useEffect(() => { console.error(error); }, [error]); return (
⚠️

Something went wrong

An unexpected error occurred

Try again — if the problem persists, please contact a member of staff.

Back home
{error.digest ? (

Reference: {error.digest}

) : null}
); }