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.
20 lines (16 loc) • 520 B
JavaScript
import { compose } from 'redux';
import { connect } from 'react-redux';
import { withPlugins } from '../extend/withPlugins';
import { getManifestTitle } from '../state/selectors';
import { MosaicRenderPreview } from '../components/MosaicRenderPreview';
/** */
const mapStateToProps = (state, { windowId }) => (
{
title: getManifestTitle(state, { windowId }),
}
);
const enhance = compose(
connect(mapStateToProps, null),
withPlugins('MosaicRenderPreview'),
);
export default enhance(MosaicRenderPreview);