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