"use strict";

var _react = _interopRequireDefault(require("react"));

var _reactDom = _interopRequireDefault(require("react-dom"));

var _history = require("history");

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

var _index = _interopRequireDefault(require("./routes/index"));

require("assets/scss/material-kit-react.css?v=1.3.0");

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

var hist = (0, _history.createBrowserHistory)();

_reactDom.default.render(_react.default.createElement(_reactRouterDom.Router, {
  history: hist
}, _react.default.createElement(_reactRouterDom.Switch, null, _index.default.map(function (prop, key) {
  return _react.default.createElement(_reactRouterDom.Route, {
    path: prop.path,
    key: key,
    component: prop.component
  });
}))), document.getElementById("root"));