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.
16 lines (12 loc) • 539 B
JavaScript
import { compose } from 'redux';
import { connect } from 'react-redux';
import { withPlugins } from '../extend/withPlugins';
import { getWindowIds, getWorkspace } from '../state/selectors';
import { WindowListButton } from '../components/WindowListButton';
/** */
const mapStateToProps = (state) => ({
disabled: getWorkspace(state).isWorkspaceAddVisible,
windowCount: getWindowIds(state).length,
});
const enhance = compose(connect(mapStateToProps, null), withPlugins('WindowListButton'));
export default enhance(WindowListButton);