"use client";
import { j as e } from "../../../node_modules/.pnpm/react@19.1.0/node_modules/react/jsx-runtime.mjs";
import { getTruncatedAddress as p } from "../../utils/addressUtils.mjs";
import { getTruncatedUrl as y } from "../../utils/urlUtil.mjs";
import { ButtonCopy as i } from "../ButtonCopy/index.mjs";
import s from "./RewardsDepositedTable.module.scss.mjs";
const T = {
  playerReach: "Total Player Reach",
  network: "Network",
  tokenContractAddress: "Token Contract Address",
  rewardType: "Reward Type",
  tokenName: "Token Name(s)",
  amountPerPlayer: "Amount Per Player",
  totalClaimables: "Total No of Claimables",
  marketplaceUrl: "Marketplace URL",
  tokenType: {
    erc20: "ERC-20",
    erc721: "ERC-721",
    erc1155: "ERC-1155"
  }
};
function N({
  playerReach: d,
  network: x,
  tokenContractAddress: l,
  rewardType: j,
  tokenName: h,
  amountPerPlayer: c,
  totalClaimables: n,
  marketplaceUrl: t,
  extraFields: o,
  i18n: r = T
}) {
  return /* @__PURE__ */ e.jsx("table", { className: s.root, children: /* @__PURE__ */ e.jsxs("tbody", { children: [
    d && /* @__PURE__ */ e.jsxs("tr", { children: [
      /* @__PURE__ */ e.jsx("td", { children: r.playerReach }),
      /* @__PURE__ */ e.jsx("td", { children: d })
    ] }),
    /* @__PURE__ */ e.jsxs("tr", { children: [
      /* @__PURE__ */ e.jsx("td", { children: r.network }),
      /* @__PURE__ */ e.jsx("td", { children: x })
    ] }),
    /* @__PURE__ */ e.jsxs("tr", { children: [
      /* @__PURE__ */ e.jsx("td", { children: r.tokenContractAddress }),
      /* @__PURE__ */ e.jsxs("td", { className: s.copyCell, children: [
        p(l),
        /* @__PURE__ */ e.jsx(i, { text: l })
      ] })
    ] }),
    /* @__PURE__ */ e.jsxs("tr", { children: [
      /* @__PURE__ */ e.jsx("td", { children: r.rewardType }),
      /* @__PURE__ */ e.jsx("td", { children: r.tokenType[j] })
    ] }),
    n !== void 0 && /* @__PURE__ */ e.jsxs("tr", { children: [
      /* @__PURE__ */ e.jsx("td", { children: r.totalClaimables }),
      /* @__PURE__ */ e.jsx("td", { children: n })
    ] }),
    /* @__PURE__ */ e.jsxs("tr", { children: [
      /* @__PURE__ */ e.jsx("td", { children: r.tokenName }),
      /* @__PURE__ */ e.jsx("td", { children: h })
    ] }),
    c !== void 0 && /* @__PURE__ */ e.jsxs("tr", { children: [
      /* @__PURE__ */ e.jsx("td", { children: r.amountPerPlayer }),
      /* @__PURE__ */ e.jsx("td", { children: c })
    ] }),
    t !== void 0 && /* @__PURE__ */ e.jsxs("tr", { children: [
      /* @__PURE__ */ e.jsx("td", { children: r.marketplaceUrl }),
      /* @__PURE__ */ e.jsxs("td", { className: s.copyCell, children: [
        y(t),
        /* @__PURE__ */ e.jsx(i, { text: t })
      ] })
    ] }),
    o !== void 0 && Object.entries(o).map(([a, m]) => /* @__PURE__ */ e.jsxs("tr", { children: [
      /* @__PURE__ */ e.jsx("td", { children: a }),
      /* @__PURE__ */ e.jsx("td", { children: m })
    ] }, a))
  ] }) });
}
export {
  N as RewardsDepositedTable,
  T as defaultI18n
};
//# sourceMappingURL=index.mjs.map
