'use client'; import { Button } from '@konobangu/design-system/components/ui/button'; import { fonts } from '@konobangu/design-system/lib/fonts'; import { captureException } from '@sentry/nextjs'; import type NextError from 'next/error'; import { useEffect } from 'react'; type GlobalErrorProperties = { readonly error: NextError & { digest?: string }; readonly reset: () => void; }; const GlobalError = ({ error, reset }: GlobalErrorProperties) => { useEffect(() => { captureException(error); }, [error]); return (

Oops, something went wrong

); }; export default GlobalError;