| 1 |
function withContext(ComposedComponent) { |
| 2 |
return class WithContext extends Component { |
| 3 |
|
| 4 |
static propTypes = { |
| 5 |
context: PropTypes.shape( |
| 6 |
{ |
| 7 |
addCss: PropTypes.func, |
| 8 |
setTitle: PropTypes.func, |
| 9 |
setMeta: PropTypes.func, |
| 10 |
} |
| 11 |
), |
| 12 |
}; |
| 13 |
}; |
| 14 |
} |