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) • 1.02 kB
JavaScript
import { compose } from 'redux';
import { connect } from 'react-redux';
import { withTranslation } from 'react-i18next';
import { withStyles } from '@material-ui/core/styles';
import { withPlugins } from '../extend/withPlugins';
import { fetchManifest, removeResource } from '../state/actions';
import { ManifestListItemError } from '../components/ManifestListItemError';
/** */
var mapDispatchToProps = {
onDismissClick: removeResource,
onTryAgainClick: fetchManifest
};
/**
*
* @param theme
* @returns {{manifestIdText: {wordBreak: string},
* errorIcon: {color: string, width: string, height: string}}}
*/
var styles = function styles(theme) {
return {
errorIcon: {
color: theme.palette.error.main,
height: '2rem',
width: '2rem'
},
manifestIdText: {
wordBreak: 'break-all'
}
};
};
var enhance = compose(withTranslation(), withStyles(styles), connect(null, mapDispatchToProps), withPlugins('ManifestListItemError'));
export default enhance(ManifestListItemError);