mirror of
https://github.com/hanzoai/babel.git
synced 2026-10-30 14:46:06 +00:00
13 lines
329 B
JavaScript
13 lines
329 B
JavaScript
function withContext(ComposedComponent) {
|
|
var _WithContext, _propTypes;
|
|
return _WithContext = class WithContext extends Component {}, _propTypes = {
|
|
_: {
|
|
context: PropTypes.shape({
|
|
addCss: PropTypes.func,
|
|
setTitle: PropTypes.func,
|
|
setMeta: PropTypes.func
|
|
})
|
|
}
|
|
}, _WithContext;
|
|
}
|