function resolveComponentName(node) {
  const parentName = node.id && node.id.name;
  if (parentName) return parentName;

  return (
    node.type === 'ArrowFunctionExpression'
    && node.parent
    && node.parent.id
    && node.parent.id.name
  );
}
Resolve the component name of given node
@param {ASTNode} node The AST node of the component
@returns {string} Name of the component, if any