import n from "qrious";
import e from "react";
import { ErrorWarning as m } from "./accelbyte-widgets658.mjs";
const s = (t) => {
  const { qrValue: r, onRetry: o } = t, a = () => new n({ value: r }).toDataURL();
  return r ? /* @__PURE__ */ e.createElement("div", { className: "boxQRCode bg-white" }, /* @__PURE__ */ e.createElement("img", { alt: "2fa-qr-code", src: a(), loading: "lazy" })) : /* @__PURE__ */ e.createElement(m, { message: "Failed to load QR code", onRetryLabel: "Try Again", onRetry: o });
};
export {
  s as QRCodeImage
};
