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.

35 lines (32 loc) 936 B
import { compose } from 'redux'; import { connect } from 'react-redux'; import { withTranslation } from 'react-i18next'; import { withStyles } from '@material-ui/core'; import { withPlugins } from '../extend/withPlugins'; import { WorkspaceImport } from '../components/WorkspaceImport'; import * as actions from '../state/actions'; /** * mapDispatchToProps - used to hook up connect to action creators * @memberof App * @private */ var mapDispatchToProps = { addError: actions.addError, importConfig: actions.importMiradorState }; /** */ var styles = function styles(theme) { return { cancelBtn: { color: theme.palette.text.primary }, textField: { width: '100%' }, textInput: { fontFamily: 'monospace' } }; }; var enhance = compose(withTranslation(), withStyles(styles), connect(null, mapDispatchToProps), withPlugins('WorkspaceImport')); export default enhance(WorkspaceImport);