"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.mapDispatch = mapDispatch;
exports.default = void 0;

var _redux = require("redux");

var _reactRedux = require("react-redux");

var _components = require("@patternplate/components");

var _actions = require("../actions");

function mapProps(state) {
  const location = state.routing.locationBeforeTransitions;
  return {
    base: state.base,
    hash: location.hash,
    pathname: location.pathname,
    query: location.query
  };
}

function mapDispatch(dispatch) {
  return (0, _redux.bindActionCreators)({
    scrollTo: _actions.scrollTo
  }, dispatch);
}

var _default = (0, _reactRedux.connect)(mapProps, mapDispatch)(_components.Markdown);

exports.default = _default;
//# sourceMappingURL=markdown.js.map