getProps = (component) => {
  if (component._currentElement && component._currentElement.props) return parseProps(component._currentElement.props);
  return null;
}
Returns a React component's props, if any
@param {React Element} component