colonel-kurtz
Version:
39 lines (28 loc) • 1.14 kB
JavaScript
;
function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; }
var React = _interopDefault(require('react'));
function objectWithoutProperties (obj, exclude) { var target = {}; for (var k in obj) if (Object.prototype.hasOwnProperty.call(obj, k) && exclude.indexOf(k) === -1) target[k] = obj[k]; return target; }
var defaultProps = {
className: 'col-graphic',
element: 'img',
src: null
};
var Graphic = /*@__PURE__*/(function (superclass) {
function Graphic () {
superclass.apply(this, arguments);
}
if ( superclass ) Graphic.__proto__ = superclass;
Graphic.prototype = Object.create( superclass && superclass.prototype );
Graphic.prototype.constructor = Graphic;
Graphic.prototype.render = function render () {
var ref = this.props;
var element = ref.element;
var rest = objectWithoutProperties( ref, ["element"] );
var other = rest;
return React.createElement(element, other)
};
return Graphic;
}(React.Component));
Graphic.defaultProps = defaultProps;
module.exports = Graphic;
//# sourceMappingURL=graphic.js.map