"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
module.exports = SubscriptionDisclaimer;
var _jsxRuntime = require("react/jsx-runtime");
var _material = require("@mui/material");
var _context = require("@arcblock/ux/lib/Locale/context");
function SubscriptionDisclaimer({
  mode,
  subscription,
  staking,
  appName
}) {
  const {
    t
  } = (0, _context.useLocaleContext)();
  if (!["subscription", "setup"].includes(mode) || !subscription) return null;
  return /* @__PURE__ */(0, _jsxRuntime.jsx)(_material.Typography, {
    sx: {
      mt: 2.5,
      color: "text.secondary",
      fontSize: "0.7875rem",
      lineHeight: "0.9625rem"
    },
    children: subscription.confirmMessage || (subscription.showStake && staking ? t("payment.checkout.confirm.withStake", {
      payee: appName || "New Payment Kit"
    }) : t("payment.checkout.confirm.withoutStake", {
      payee: appName || "New Payment Kit"
    }))
  });
}