function getComponentProperties(node) {
  switch (node.type) {
    case 'ClassDeclaration':
    case 'ClassExpression':
      return node.body.body;
    case 'ObjectExpression':
      return node.properties;
    default:
      return [];
  }
}
Get properties for a given AST node
@param {ASTNode} node The AST node being checked.
@returns {Array} Properties array.