"use client"; import { GlobeAmericasIcon } from "@heroicons/react/24/solid"; import Link from "next/link"; import { useEffect } from "react"; import * as Sentry from "@sentry/nextjs"; import Card from "@/components/card"; /** * Error page component for handling global errors. * * @param error - The error object passed to the component. */ export default function ErrorPage({ error }: { error: Error & { digest?: string } }) { useEffect(() => { Sentry.captureException(error); }, [error]); return (

Oops! Something went wrong.

We're experiencing some technical difficulties. Please try again later.

{error?.digest &&

Error Code: {error.digest}

}
Go back to the homepage
); }