( WrappedComponent: ComponentType<T & Props>, )
| 10 | }; |
| 11 | |
| 12 | export default function withLive<T>( |
| 13 | WrappedComponent: ComponentType<T & Props>, |
| 14 | ) { |
| 15 | const WithLive = (props: T) => ( |
| 16 | <LiveContext.Consumer> |
| 17 | {(live) => <WrappedComponent live={live} {...props} />} |
| 18 | </LiveContext.Consumer> |
| 19 | ); |
| 20 | |
| 21 | WithLive.displayName = "WithLive"; |
| 22 | return WithLive; |
| 23 | } |
no outgoing calls
no test coverage detected