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.

17 lines (13 loc) 522 B
import { compose } from 'redux'; import { connect } from 'react-redux'; import { withPlugins } from '../extend/withPlugins'; import { LayersPanel } from '../components/LayersPanel'; import { getVisibleCanvasIds } from '../state/selectors'; /** * mapStateToProps - to hook up connect */ const mapStateToProps = (state, { id, windowId }) => ({ canvasIds: getVisibleCanvasIds(state, { windowId }), }); const enhance = compose(connect(mapStateToProps), withPlugins('LayersPanel')); export default enhance(LayersPanel);