"use strict";

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

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports["default"] = void 0;

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

var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));

var _react = _interopRequireDefault(require("react"));

var _qrcode = _interopRequireDefault(require("qrcode.react"));

var _excluded = ["renderAs", "value"];

var QR = function QR(props) {
  var _props$renderAs = props.renderAs,
      renderAs = _props$renderAs === void 0 ? 'canvas' : _props$renderAs,
      value = props.value,
      rest = (0, _objectWithoutProperties2["default"])(props, _excluded);
  return /*#__PURE__*/_react["default"].createElement(_qrcode["default"], (0, _extends2["default"])({
    renderAs: renderAs,
    value: value
  }, rest));
};

var _default = QR;
exports["default"] = _default;
//# sourceMappingURL=QRCode.js.map
