"use client" import * as Sentry from "@sentry/nextjs" import { useEffect } from "react" import { useIntl } from "react-intl" import Body from "@/components/TempDesignSystem/Text/Body" import { GenericError } from "./components/GenericError" import { SASModalContactBlock } from "./components/SASModal" export default function Error({ error, }: { error: Error & { digest?: string } }) { const intl = useIntl() useEffect(() => { if (!error) return console.error(error) Sentry.captureException(error) }, [error]) return ( {intl.formatMessage({ id: "We could not connect your accounts to give you access. Please contact us and we’ll help you resolve this issue.", })} ) }