mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
11 lines
304 B
JavaScript
11 lines
304 B
JavaScript
function withContext(ComposedComponent) {
|
|
var _WithContext;
|
|
return _WithContext = class WithContext extends Component {}, _WithContext.propTypes = {
|
|
context: PropTypes.shape({
|
|
addCss: PropTypes.func,
|
|
setTitle: PropTypes.func,
|
|
setMeta: PropTypes.func
|
|
})
|
|
}, _WithContext;
|
|
}
|