import React, { PropTypes, PureComponent } from 'react'; import { connect } from 'react-redux'; import ns from './ns.json'; import { isJSEnabledSelector } from './redux'; import {Alert} from 'react-bootstrap'; const mainId = 'fcc-main-frame'; const mapStateToProps = state => ({ isJSEnabled: isJSEnabledSelector(state) }); const mapDispatchToProps = null; const propTypes = { isJSEnabled: PropTypes.bool }; export class Preview extends PureComponent { render() { const { isJSEnabled } = this.props; return (