sub-packs/themes/zealder-default-theme/src/routes/index.js
function getThemeApp() {
  let mapStateToProps = (state) => {
    return {
      pages: state.pages,
      zlSite: state.zlSite,
      themeData: state.themeData,
      loadedComponents,
      getComponent,
      page: state.pages[state.currentPage]
    };
  }
  // component name
  let component = 'App';

  let WrappedComponent = getComponent(component);

  const enhance = compose(
    connect(mapStateToProps),
    appSubscription
  )
  return enhance(WrappedComponent);
}
function getThemeApp() {
  let mapStateToProps = (state) => {
    return {
      pages: state.pages,
      zlSite: state.zlSite,
      themeData: state.themeData,
      loadedComponents,
      getComponent,
      page: state.pages[state.currentPage]
    };
  }
  // component name
  let component = 'App';

  let WrappedComponent = getComponent(component);

  const enhance = compose(
    connect(mapStateToProps),
    appSubscription
  )
  return enhance(WrappedComponent);
}
/* loads store connnected container with wrapped App component