mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
20 lines
594 B
JavaScript
20 lines
594 B
JavaScript
function withContext(ComposedComponent) {
|
|
var _WithContext;
|
|
return _WithContext = /*#__PURE__*/function (_Component) {
|
|
"use strict";
|
|
|
|
function WithContext() {
|
|
babelHelpers.classCallCheck(this, WithContext);
|
|
return babelHelpers.callSuper(this, WithContext, arguments);
|
|
}
|
|
babelHelpers.inherits(WithContext, _Component);
|
|
return babelHelpers.createClass(WithContext);
|
|
}(Component), _WithContext.propTypes = {
|
|
context: PropTypes.shape({
|
|
addCss: PropTypes.func,
|
|
setTitle: PropTypes.func,
|
|
setMeta: PropTypes.func
|
|
})
|
|
}, _WithContext;
|
|
}
|