import React, { PropTypes } from 'react';
import ReactDOM from 'react-dom';

import { Link } from 'react-router';

import { createPureComponent } from 'utils/createPureComponent';

export default createPureComponent({

  displayName: 'App',

  renderLink() {
    const isEditing = this.props.location.pathname === '/editor';
    const to = isEditing ? '/' : '/editor';
    const text = isEditing ? 'Play this level' : 'Edit this level';
    return (<Link to={to}>{text}</Link>);
  },

  render() {
    return (
      <div className="app">
        {this.props.children}
      </div>
    );
  }

});

@@ -562,16 +562,477 @@
 ildren%7D%0A
+        %3Cnav className=%22navbar%22%3E%0A          %3Cdiv className=%22navbar__item%22%3E%0A            %7Bthis.renderLink()%7D%0A          %3C/div%3E%0A          %3Cdiv className=%22navbar__item%22%3E%0A            %3Ciframe%0A              src=%22https://ghbtns.com/github-btn.html?user=stevenhauser&repo=i-have-to-return-some-videotapes&type=star%22%0A              className=%22navbar__btn%22%0A              frameBorder=%220%22 scrolling=%220%22 width=%2250px%22 height=%2220px%22%0A            /%3E%0A          %3C/div%3E%0A        %3C/nav%3E%0A
       %3C/

Revert "Revert "Revert "Revert "Revert "Revert "Revert "kein editor"""""""