import { captureException } from '@sentry/browser'; import { FallbackProps } from 'react-error-boundary'; import { useDebugState } from '@sd/client'; import { Button } from '@sd/ui'; export default ({ error, resetErrorBoundary }: FallbackProps) => ( { captureException(error); resetErrorBoundary(); }} reloadBtn={resetErrorBoundary} /> ); export function ErrorPage({ reloadBtn, sendReportBtn, message }: { reloadBtn?: () => void; sendReportBtn?: () => void; message: string; }) { const debug = useDebugState(); return (

APP CRASHED

We're past the event horizon...

Error: {message}
{debug.enabled && (
					Check the console (CMD/CRTL + OPTION + i) for stack trace.
				
)}
{reloadBtn && ( )} {sendReportBtn && ( )}
); }