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.

25 lines (21 loc) 870 B
import { compose } from 'redux'; import { connect } from 'react-redux'; import { withPlugins } from '../extend/withPlugins'; import { getManifestSummary, getManifestTitle, getManifestMetadata } from '../state/selectors'; import { ManifestInfo } from '../components/ManifestInfo'; /** * mapStateToProps - to hook up connect * @memberof WindowSideBarInfoPanel * @private */ const mapStateToProps = (state, { companionWindowId, manifestId, windowId }) => ({ manifestLabel: getManifestTitle(state, { companionWindowId, manifestId, windowId }), manifestMetadata: getManifestMetadata(state, { companionWindowId, manifestId, windowId }), manifestSummary: getManifestSummary(state, { companionWindowId, manifestId, windowId, }), }); const enhance = compose(connect(mapStateToProps), withPlugins('ManifestInfo')); export default enhance(ManifestInfo);