import React, { PropTypes } from 'react'; import InlineSVG from 'react-inlinesvg'; const exitUrl = require('../../../images/exit.svg'); const helpContent = { serveSecure: { title: 'Serve over HTTPS', body: (

Use the checkbox to choose whether this sketch should be loaded using HTTPS or HTTP.

You should choose HTTPS if you need to:

Choose HTTP if you need to:

) } }; const fallbackContent = { title: 'No content for this topic', body: null, }; class HelpModal extends React.Component { componentDidMount() { this.shareModal.focus(); } render() { const content = helpContent[this.props.type] == null ? fallbackContent : helpContent[this.props.type]; return (
{ this.shareModal = element; }} tabIndex="0">

{content.title}

{content.body}
); } } HelpModal.propTypes = { type: PropTypes.string.isRequired, closeModal: PropTypes.func.isRequired, }; export default HelpModal;