import { captureException } from '@sentry/browser'; import { FallbackProps } from 'react-error-boundary'; import { useDebugState } from '@sd/client'; import { Button } from '@sd/ui'; export function ErrorFallback({ error, resetErrorBoundary }: FallbackProps) { const onClick = () => { captureException(error); resetErrorBoundary(); }; const debug = useDebugState(); return (
APP CRASHED
Error: {error.message}
{debug.enabled && (
Check the console (CMD/CRTL + OPTION + i) for stack trace.)}