UNPKG

mirador

Version:

An open-source, web-based 'multi-up' viewer that supports zoom-pan-rotate functionality, ability to display/compare simple images, and images with annotations.

19 lines (15 loc) 602 B
import { compose } from 'redux'; import { connect } from 'react-redux'; import { withPlugins } from '../extend/withPlugins'; import { SidebarIndexThumbnail } from '../components/SidebarIndexThumbnail'; import { getConfig } from '../state/selectors'; /** * mapStateToProps - used to hook up state to props * @memberof SidebarIndexThumbnail * @private */ const mapStateToProps = (state, { data }) => ({ ...(getConfig(state).canvasNavigation || {}), }); const enhance = compose(connect(mapStateToProps, null), withPlugins('SidebarIndexThumbnail')); export default enhance(SidebarIndexThumbnail);