import * as React from 'react'; import { Modal } from 'react-bootstrap'; export interface IAjaxErrorModalProps { show: boolean; onHide: () => void; title?: string; troubleshooting?: string[]; } export default class AjaxErrorModal extends React.Component< IAjaxErrorModalProps, {} > { private defaultTitle = 'Sorry, something went wrong!'; private defaultTroubleshooting = [ 'Check that your URL parameters are valid.', 'Make sure you are connected to the internet.', ]; public render() { return ( {typeof this.props.title === 'undefined' ? this.defaultTitle : this.props.title}

Troubleshooting:

); } }