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) • 594 B
JavaScript
import { compose } from 'redux';
import { connect } from 'react-redux';
import { withPlugins } from '../extend/withPlugins';
import { getConfig, getTheme } from '../state/selectors';
import { AppProviders } from '../components/AppProviders';
/**
* mapStateToProps - to hook up connect
* @memberof App
* @private
*/
const mapStateToProps = (state) => ({
language: getConfig(state).language,
theme: getTheme(state),
translations: getConfig(state).translations,
});
const enhance = compose(connect(mapStateToProps), withPlugins('AppProviders'));
export default enhance(AppProviders);