mirror of
https://github.com/jakejarvis/jarv.is.git
synced 2025-04-26 16:28:28 -04:00
15 lines
317 B
TypeScript
15 lines
317 B
TypeScript
"use client";
|
|
|
|
import { useEffect } from "react";
|
|
import * as Sentry from "@sentry/nextjs";
|
|
|
|
const Error = ({ error }: { error: Error & { digest?: string } }) => {
|
|
useEffect(() => {
|
|
Sentry.captureException(error);
|
|
}, [error]);
|
|
|
|
return <span>Something went very wrong! 😳</span>;
|
|
};
|
|
|
|
export default Error;
|