Select Git revision
WindowViewer.js
WindowViewer.js 830 B
import { compose } from 'redux';
import { connect } from 'react-redux';
import { withPlugins } from '../extend/withPlugins';
import * as actions from '../state/actions';
import { WindowViewer } from '../components/WindowViewer';
/**
* mapStateToProps - to hook up connect
* @memberof WindowViewer
* @private
*/
const mapStateToProps = (state, { windowId }) => ({});
/**
* mapDispatchToProps - used to hook up connect to action creators
* @memberof WindowViewer
* @private
*/
const mapDispatchToProps = {
fetchAnnotation: actions.fetchAnnotation,
fetchInfoResponse: actions.fetchInfoResponse,
receiveAnnotation: actions.receiveAnnotation,
};
const enhance = compose(
connect(mapStateToProps, mapDispatchToProps),
withPlugins('WindowViewer'),
// further HOC go here
);
export default enhance(WindowViewer);