"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.ExportApp = void 0;
var _reactRedux = require("react-redux");
var _workpad = require("../../state/actions/workpad");
var _workpad2 = require("../../state/selectors/workpad");
var _export_app = require("./export_app.component");
/*
 * Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
 * or more contributor license agreements. Licensed under the Elastic License
 * 2.0; you may not use this file except in compliance with the Elastic License
 * 2.0.
 */

const ExportApp = (0, _reactRedux.connect)(state => ({
  workpad: (0, _workpad2.getWorkpad)(state),
  selectedPageIndex: (0, _workpad2.getSelectedPageIndex)(state)
}), dispatch => ({
  initializeWorkpad: () => dispatch((0, _workpad.initializeWorkpad)())
}))(_export_app.ExportApp);
exports.ExportApp = ExportApp;