import state from "./state";
import saga from "./saga";
import reducer from "./reducer";
import * as actions from "./actions";
import Page from "./Page";

export default {
  Component: Page,
  state,
  saga,
  reducer,
  actions,
  mapStateToProps: function mapStateToProps(state,key) {
    return {
      pageA: state[key].pageA,
      name: state[key].name,
      dynamicState: state[key].dynamicState,
      cnt: state[key].cnt
    };
  }
};

import state from "./state";
import saga from "./saga";
import reducer from "./reducer";
import * as actions from "./actions";
import Page from "./Page";

export default {
  Component: Page,
  state,
  saga,
  reducer,
  actions
};

fix integration test