import React from 'react'; import Gitter from 'react-sidecar'; let stylesStr; if (process.env.NODE_ENV === `production`) { try { stylesStr = require('!raw-loader!../public/styles.css'); } catch (e) { console.log(e); } } const JS_NPM_URLS = [ 'https://buttons.github.io/buttons.js', '//unpkg.com/docsearch.js@2.4.1/dist/cdn/docsearch.min.js' ]; module.exports = class HTML extends React.Component { render() { let css; if (process.env.NODE_ENV === 'production') { css = ( ); } const js = JS_NPM_URLS.map(src => ); return (
{this.props.headComponents} {css} {this.props.preBodyComponents} {this.props.postBodyComponents}