'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports['default'] = undefined;

var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');

var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);

var _createClass2 = require('babel-runtime/helpers/createClass');

var _createClass3 = _interopRequireDefault(_createClass2);

var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');

var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);

var _inherits2 = require('babel-runtime/helpers/inherits');

var _inherits3 = _interopRequireDefault(_inherits2);

var _class;

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _mobxReact = require('mobx-react');

var _reactRouterDom = require('react-router-dom');

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { 'default': obj }; }

var Index = (0, _mobxReact.observer)(_class = function (_React$Component) {
  (0, _inherits3['default'])(Index, _React$Component);

  function Index() {
    (0, _classCallCheck3['default'])(this, Index);
    return (0, _possibleConstructorReturn3['default'])(this, (Index.__proto__ || Object.getPrototypeOf(Index)).apply(this, arguments));
  }

  (0, _createClass3['default'])(Index, [{
    key: 'render',
    value: function render() {
      var AutoRouter = this.props.AutoRouter;

      return _react2['default'].createElement(
        _reactRouterDom.HashRouter,
        null,
        _react2['default'].createElement(
          'div',
          { style: { display: 'flex', flexDirection: 'column', height: '100vh', overflow: 'hidden' } },
          _react2['default'].createElement(
            'div',
            { style: { flex: 1, display: 'flex' } },
            _react2['default'].createElement(
              'div',
              { style: { flex: 1 } },
              _react2['default'].createElement(
                'div',
                { style: { height: 'calc(100%)', overflow: 'auto' } },
                _react2['default'].createElement(AutoRouter, null)
              )
            )
          )
        )
      );
    }
  }]);
  return Index;
}(_react2['default'].Component)) || _class;

exports['default'] = Index;