'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _react = require('react');

var _react2 = _interopRequireDefault(_react);

var _reactRouter = require('react-router');

var _Nav = require('./layout/Nav');

var _Nav2 = _interopRequireDefault(_Nav);

var _Footer = require('./layout/Footer');

var _Footer2 = _interopRequireDefault(_Footer);

var _Home = require('./Home');

var _Home2 = _interopRequireDefault(_Home);

var _Documentation = require('./Documentation');

var _Documentation2 = _interopRequireDefault(_Documentation);

require('bootstrap/dist/css/bootstrap.css');

require('./prism.css');

require('./index.css');

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

var title = 'Component Template';
var gh = 'reactstrap/component-template';
// if using a root url, remove the basename value here and in BrowserRouter
var basename = process.env.REACT_APP_GH_PAGES_PATH ? '/' + process.env.REACT_APP_GH_PAGES_PATH : '';

var Docs = function Docs() {
  return _react2.default.createElement(
    _reactRouter.BrowserRouter,
    { basename: basename },
    _react2.default.createElement(
      'div',
      { className: 'App' },
      _react2.default.createElement(_Nav2.default, { title: title, gh: gh }),
      _react2.default.createElement(_reactRouter.Match, { exactly: true, pattern: '/', render: function render() {
          return _react2.default.createElement(_Home2.default, { title: title, gh: gh });
        } }),
      _react2.default.createElement(_reactRouter.Match, { pattern: '/documentation', component: _Documentation2.default }),
      _react2.default.createElement(_Footer2.default, { gh: gh })
    )
  );
};

exports.default = Docs;