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.
28 lines (24 loc) • 738 B
JavaScript
import { compose } from 'redux';
import { connect } from 'react-redux';
import {
getManifestLogo,
getRequiredStatement,
getRights,
} from '../state/selectors';
import { withPlugins } from '../extend/withPlugins';
import { AttributionPanel } from '../components/AttributionPanel';
/**
* mapStateToProps - to hook up connect
* @memberof WindowSideBarInfoPanel
* @private
*/
const mapStateToProps = (state, { id, windowId }) => ({
manifestLogo: getManifestLogo(state, { windowId }),
requiredStatement: getRequiredStatement(state, { windowId }),
rights: getRights(state, { windowId }),
});
const enhance = compose(
connect(mapStateToProps),
withPlugins('AttributionPanel'),
);
export default enhance(AttributionPanel);