15 lines
365 B
JavaScript
15 lines
365 B
JavaScript
function withContext(ComposedComponent) {
|
|
return class WithContext extends Component {
|
|
|
|
static propTypes = {
|
|
context: PropTypes.shape(
|
|
{
|
|
addCss: PropTypes.func,
|
|
setTitle: PropTypes.func,
|
|
setMeta: PropTypes.func,
|
|
}
|
|
),
|
|
};
|
|
};
|
|
}
|