"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.default = attachPropertiesToComponent;

function attachPropertiesToComponent(component, properties) {
  var ret = component;
  Object.keys(properties).forEach(function (key) {
    if (Object.prototype.hasOwnProperty.call(properties, key)) {
      ret[key] = properties[key];
    }
  });
  return ret;
}