text: import "core-js/modules/es.array.filter.js";
  import "core-js/modules/es.array.map.js";
  import "core-js/modules/es.object.keys.js";
  import "core-js/modules/es.array.find.js";
  import "core-js/modules/es.function.name.js";
  // react-docgen doesn't returned the props in the order they were defined in the "propTypes" object of the component.
  // This function re-order them by their original definition order.
  export function keepOriginalDefinitionOrder(extractedProps, component) {
    // eslint-disable-next-line react/forbid-foreign-prop-types
    var propTypes = component.propTypes;
  
    if (propTypes != null) {
      return Object.keys(propTypes).map(function (x) {
        return extractedProps.find(function (y) {
          return y.name === x;
        });
      }).filter(function (x) {
        return x;
      });
    }
  
    return extractedProps;
  }