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.

30 lines (26 loc) 1.01 kB
import { compose } from 'redux'; import { connect } from 'react-redux'; import { withPlugins } from '../extend/withPlugins'; import { getManifestDescription, 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 }) => ({ manifestDescription: getManifestDescription(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);