Files
liuxingbaoyuandGitHub 0d29e85ffc Reduce the use of class names (#16326)
Use the return value of the createClass helper
2024-03-07 17:11:56 -05:00

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;
}