function getDefaultPropsFromObjectExpression(objectExpression) {
    const hasSpread = objectExpression.properties.find((property) => property.type === 'ExperimentalSpreadProperty' || property.type === 'SpreadElement');

    if (hasSpread) {
      return 'unresolved';
    }

    return objectExpression.properties.map((defaultProp) => ({
      name: getText(context, defaultProp.key).replace(QUOTES_REGEX, ''),
      node: defaultProp,
    }));
  }
Extracts a DefaultProp from an ObjectExpression node.
@param   {ASTNode} objectExpression ObjectExpression node.
@returns {Object|string}            Object representation of a defaultProp, to be consumed by
                                    `addDefaultPropsToComponent`, or string "unresolved", if the defaultProps
                                    from this ObjectExpression can't be resolved.