"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
module.exports = SafeGuard;
var _util = require("../libs/util");
function SafeGuard({
  children
}) {
  const mounted = (0, _util.isPaymentKitMounted)();
  if (mounted === false) {
    console.warn(`PaymentKit is required to use this feature: https://store.blocklet.dev/blocklets/${_util.PAYMENT_KIT_DID}`);
  }
  return mounted ? children : null;
}