var QRCode = require('qrcode');

const qrCodeFunction = (templateUrl, callBack) => {
  if (templateUrl != '') {
    var qrCodeImg = '';
    QRCode.toDataURL(templateUrl, function(err, url) {
      qrCodeImg = url;
    });
    callBack(qrCodeImg)
  }
}

export{
  qrCodeFunction,
}
