"use strict";

var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;

exports.__esModule = true;
exports.default = void 0;

var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));

var _propParser = _interopRequireDefault(require("../utils/propParser"));

/* eslint-disable no-undef */
var Component = function Component(props) {
  var _this = this;

  this.toString = function () {
    return (0, _propParser.default)((0, _extends2.default)({}, _this, {
      toString: undefined
    }));
  };

  Object.entries(props || {}).forEach(function (_ref) {
    var key = _ref[0],
        value = _ref[1];
    _this[key] = value;
  });
};

exports.default = Component;