"use client" import * as Sentry from "@sentry/nextjs" import { useEffect } from "react" import { useIntl } from "react-intl" export default function Error({ error, }: { error: Error & { digest?: string } }) { const intl = useIntl() useEffect(() => { if (!error) return console.error({ breadcrumbsError: error }) Sentry.captureException(error) }, [error]) return (

{intl.formatMessage( { id: "Breadcrumbs failed for this page ({errorId})" }, { errorId: `${error.digest}@${Date.now()}`, } )}

) }