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