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.

26 lines (21 loc) 1.54 kB
var _excluded = ["classes", "className"]; function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; } function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; } import React from 'react'; import DialogContent from '@material-ui/core/DialogContent'; /** * ScrollIndicatedDialogContent ~ Inject a style into the DialogContent component * to indicate there is scrollable content */ export function ScrollIndicatedDialogContent(props) { var classes = props.classes, className = props.className, otherProps = _objectWithoutProperties(props, _excluded); var ourClassName = [className, classes.shadowScrollDialog].join(' '); return /*#__PURE__*/React.createElement(DialogContent, Object.assign({ className: ourClassName }, otherProps)); } ScrollIndicatedDialogContent.defaultProps = { className: '' };