'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

var React = require('react');
var qrcode_react = require('qrcode.react');

function _interopNamespaceCompat(e) {
    if (e && typeof e === 'object' && 'default' in e) return e;
    var n = Object.create(null);
    if (e) {
        Object.keys(e).forEach(function (k) {
            if (k !== 'default') {
                var d = Object.getOwnPropertyDescriptor(e, k);
                Object.defineProperty(n, k, d.get ? d : {
                    enumerable: true,
                    get: function () { return e[k]; }
                });
            }
        });
    }
    n.default = e;
    return Object.freeze(n);
}

var React__namespace = /*#__PURE__*/_interopNamespaceCompat(React);

var css = {"root":"QRCode__root___ZFxvt"};

var QRCode = function QRCode(_ref) {
  var value = _ref.value,
    _ref$size = _ref.size,
    size = _ref$size === void 0 ? 100 : _ref$size,
    _ref$bgColor = _ref.bgColor,
    bgColor = _ref$bgColor === void 0 ? 'var(--white)' : _ref$bgColor,
    _ref$fgColor = _ref.fgColor,
    fgColor = _ref$fgColor === void 0 ? 'var(--black-900)' : _ref$fgColor,
    _ref$level = _ref.level,
    level = _ref$level === void 0 ? 'L' : _ref$level;
  return /*#__PURE__*/React__namespace.createElement(qrcode_react.QRCodeSVG, {
    value: value,
    size: size,
    bgColor: bgColor,
    fgColor: fgColor,
    level: level,
    className: css.root
  });
};
QRCode.displayName = 'QRCode';

exports.QRCode = QRCode;

require('./style.development.css');
