"use strict";

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

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

var _get = _interopRequireDefault(require("lodash/get"));

var _ContentViewerPage = _interopRequireDefault(require("../../components/pages/ContentViewerPage"));

var _media = require("../../actions/media");

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

const mapDispatchToProps = {
  readContent: (location, match) => {
    const contentPath = (0, _get.default)(match, ['params', 'contentPath']);
    return (0, _media.readBinary)(contentPath);
  }
};

var _default = (0, _reactRedux.connect)(undefined, mapDispatchToProps)(_ContentViewerPage.default);

exports.default = _default;