"use client"; import * as Sentry from "@sentry/nextjs"; import { type NextPage } from "next"; import { useEffect } from "react"; import CustomError from "./error"; import type { ErrorProps } from "./error"; export const GlobalError: NextPage = (props) => { useEffect(() => { Sentry.captureException(props.error); }, [props.error]); return ( ); }; export default GlobalError;