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.
13 lines (12 loc) • 341 B
JavaScript
import React, { forwardRef } from 'react';
/** */
export var withRef = function withRef() {
return function (Component) {
var WithRefs = /*#__PURE__*/forwardRef(function (props, ref) {
return /*#__PURE__*/React.createElement(Component, Object.assign({
innerRef: ref
}, props));
});
return WithRefs;
};
};