text: /**
   * React Starter Kit (https://www.reactstarterkit.com/)
   *
   * Copyright © 2014-2016 Kriasoft, LLC. All rights reserved.
   *
   * This source code is licensed under the MIT license found in the
   * LICENSE.txt file in the root directory of this source tree.
   */
  
  import React, { Component, PropTypes } from 'react';
  import emptyFunction from 'fbjs/lib/emptyFunction';
  import s from './App.scss';
  import Header from '../Header';
  import Feedback from '../Feedback';
  import Footer from '../Footer';
  
  import bs from '../../../node_modules/bootstrap/dist/css/bootstrap.css';
  
  class App extends Component {
  
    static propTypes = {
      context: PropTypes.shape({
        insertCss: PropTypes.func,
        setTitle: PropTypes.func,
        setMeta: PropTypes.func,
      }),
      children: PropTypes.element.isRequired,
      error: PropTypes.object,
    };
  
    static childContextTypes = {
      insertCss: PropTypes.func.isRequired,
      setTitle: PropTypes.func.isRequired,
      setMeta: PropTypes.func.isRequired,
    };
  
    getChildContext() {
      const context = this.props.context;
      return {
        insertCss: context.insertCss || emptyFunction,
        setTitle: context.setTitle || emptyFunction,
        setMeta: context.setMeta || emptyFunction,
      };
    }
  
    componentWillMount() {
      const {insertCss} = this.props.context;
      insertCss(bs);
      this.removeCss = insertCss(s);
      console.log(this.removeCss);
    }
  
    componentWillUnmount() {
      this.removeCss();
    }
  
    render() {
      return !this.props.error ? (
        <div>
          <div><span className="glyphicon glyphicon-search" aria-hidden="true"></span> HAAALLOOO</div>
          <Header />
          {this.props.children}
          <Feedback />
          <Footer />
        </div>
        ) : this.props.children;
    }
  
  }
  
  export default App;
  