const CrashedPage = ( ) : JSX . Element => { try { if ( typeof window !== 'undefined' && typeof window . onerror === 'function' ) { window . onerror ( null , null , null , null , new Error ( 'Crashed' ) ) ; } } catch ( _e ) { } return < h1 > Crashed < /h1>; } ; export default CrashedPage ;