@jingx/lottery-components-react-jsx 1.0.21 → 1.0.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -38143,8 +38143,10 @@ const RenderRow = ({ children, label, isShow = true }) => {
38143
38143
  /* @__PURE__ */ jsxRuntimeExports.jsx("td", { style: { fontWeight: 600 }, className: "px-0 text-black w-60", children })
38144
38144
  ] });
38145
38145
  };
38146
- const Ticket = ({ object, lotteryType, plusCount = 1, logo, hideWaterAmount = false, isVN = false, isSend = false }) => {
38146
+ const Ticket = ({ object, lotteryType, plusCount = 1, hideWaterAmount = false, Env = {}, isSend = false }) => {
38147
38147
  var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n;
38148
+ const logo = Env.REACT_APP_PRINT_LOGO && Env.REACT_APP_PRINT_LOGO !== "";
38149
+ const isVN = Env.REACT_APP_IS_VN && Env.REACT_APP_IS_VN !== "";
38148
38150
  const isShowKhr = ((_a = object == null ? void 0 : object.totalKhr) == null ? void 0 : _a.betAmount) !== ((_b = object == null ? void 0 : object.totalKhr) == null ? void 0 : _b.waterAmount) && ((_c = object == null ? void 0 : object.totalKhr) == null ? void 0 : _c.waterAmount) > 0;
38149
38151
  const isShowUsd = ((_d = object == null ? void 0 : object.totalUsd) == null ? void 0 : _d.betAmount) !== ((_e = object == null ? void 0 : object.totalUsd) == null ? void 0 : _e.waterAmount) && ((_f = object == null ? void 0 : object.totalUsd) == null ? void 0 : _f.waterAmount) > 0;
38150
38152
  const isNight = object == null ? void 0 : object.isNight;