"use client"; import * as Sentry from "@sentry/nextjs"; import Error from "next/error"; import { useEffect } from "react"; const GlobalError = ({ error }) => { useEffect(() => { Sentry.captureException(error); }, [error]); return (