()
| 271 | } |
| 272 | |
| 273 | render() { |
| 274 | const {children, ...props} = this.props; |
| 275 | let newProps = {...props}; |
| 276 | |
| 277 | if (children) { |
| 278 | newProps = this.mapChildrenToProps(children, newProps); |
| 279 | } |
| 280 | |
| 281 | return <Component {...newProps} />; |
| 282 | } |
| 283 | }; |
| 284 | |
| 285 | const NullComponent = () => null; |
no test coverage detected