mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
21 lines
603 B
JavaScript
21 lines
603 B
JavaScript
function withContext(ComposedComponent) {
|
|
var _class;
|
|
return _class = /*#__PURE__*/function (_Component) {
|
|
"use strict";
|
|
|
|
babelHelpers.inherits(WithContext, _Component);
|
|
var _super = babelHelpers.createSuper(WithContext);
|
|
function WithContext() {
|
|
babelHelpers.classCallCheck(this, WithContext);
|
|
return _super.apply(this, arguments);
|
|
}
|
|
return babelHelpers.createClass(WithContext);
|
|
}(Component), _class.propTypes = {
|
|
context: PropTypes.shape({
|
|
addCss: PropTypes.func,
|
|
setTitle: PropTypes.func,
|
|
setMeta: PropTypes.func
|
|
})
|
|
}, _class;
|
|
}
|