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.
21 lines (17 loc) • 757 B
JavaScript
import { compose } from 'redux';
import { connect } from 'react-redux';
import { withPlugins } from '../extend/withPlugins';
import { getManifestStatus, getManifestTitle, getWindowConfig } from '../state/selectors';
import { WindowTopBarTitle } from '../components/WindowTopBarTitle';
/** mapStateToProps */
const mapStateToProps = (state, { windowId }) => ({
error: getManifestStatus(state, { windowId }).error,
hideWindowTitle: getWindowConfig(state, { windowId }).hideWindowTitle,
isFetching: getManifestStatus(state, { windowId }).isFetching,
manifestTitle: getManifestTitle(state, { windowId }),
});
const enhance = compose(
connect(mapStateToProps, null),
withPlugins('WindowTopBarTitle'),
);
export default enhance(WindowTopBarTitle);