function WithFirebase(props) {
    return (
      <ReactReduxFirebaseContext.Consumer>
        {(firebase) => (
          <WrappedComponent
            firebase={firebase}
            dispatch={firebase && firebase.dispatch}
            {...props}
          />
        )}
      </ReactReduxFirebaseContext.Consumer>
    )
  }
WithFirebase wrapper component
@param {object} props - Component props
@returns {React.Component} WrappedComponent wrapped with firebase context