whole_func_string: function getAxisComponent(childComponents, axis) {
    const matchesAxis = (component) => {
      const type = component.type.getAxis(component.props);
      return type === axis;
    };
    return findAxisComponents(childComponents, matchesAxis)[0];
  }
func_code_string: function getAxisComponent(childComponents, axis) {
    const matchesAxis = (component) => {
      const type = component.type.getAxis(component.props);
      return type === axis;
    };
    return findAxisComponents(childComponents, matchesAxis)[0];
  }
func_documentation_string: Returns a single axis component of the desired axis type (x or y)
  @param {Array} childComponents: an array of children
  @param {String} axis: desired axis either "x" or "y".
  @returns {ReactComponent} an axis component of the desired axis or undefined