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.

25 lines (23 loc) 686 B
import { compose } from 'redux'; import { withTranslation } from 'react-i18next'; import { withStyles } from '@material-ui/core'; import { withPlugins } from '../extend/withPlugins'; import { WorkspaceMenuButton } from '../components/WorkspaceMenuButton'; /** * * @param theme * @returns {{ctrlBtn: {margin: (number|string)}}} */ var styles = function styles(theme) { return { ctrlBtn: { margin: theme.spacing(1) }, ctrlBtnSelected: { backgroundColor: theme.palette.action.selected } }; }; var enhance = compose(withTranslation(), withStyles(styles), withPlugins('WorkspaceMenuButton') // further HOC ); export default enhance(WorkspaceMenuButton);