"use strict";Object.defineProperty(exports, "__esModule", {value: true});

var _chunkAEJ7VTL4cjs = require('./chunk-AEJ7VTL4.cjs');


var _chunkOPMC32ZYcjs = require('./chunk-OPMC32ZY.cjs');


var _chunkCH2PLO6Fcjs = require('./chunk-CH2PLO6F.cjs');


var _chunkWF7Z2VITcjs = require('./chunk-WF7Z2VIT.cjs');


var _chunkJA7KZV3Qcjs = require('./chunk-JA7KZV3Q.cjs');

// src/components/SatoshiInputLabel.tsx
var _jsxruntime = require('@emotion/react/jsx-runtime');
function SatoshiInputLabel({
  text,
  availableSats,
  showTooltip = true
}) {
  const availableSatsTooltipNode = showTooltip ? /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkAEJ7VTL4cjs.Label, { style: { display: "inline-flex", margin: "0 0 0 3px" }, children: [
    "available",
    " ",
    /* @__PURE__ */ _jsxruntime.jsx.call(void 0, 
      _chunkOPMC32ZYcjs.InfoIconTooltip,
      {
        id: "available-balance-tooltip",
        content: [
          "Your available balance may differ from your total balance due to operational funds being held on the Lightning Network. ",
          _chunkCH2PLO6Fcjs.link.call(void 0, {
            text: "Learn more",
            externalLink: "https://docs.lightspark.com/lightspark-sdk/api-reference/types/Balances"
          })
        ]
      }
    )
  ] }) : null;
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _chunkAEJ7VTL4cjs.Label, { children: [
    /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: text }),
    /* @__PURE__ */ _jsxruntime.jsx.call(void 0, "div", { children: availableSats !== void 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, "div", { children: [
      /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _chunkWF7Z2VITcjs.Icon, { name: "Satoshi", width: 8, mr: 4, verticalAlign: -2 }),
      _chunkJA7KZV3Qcjs.addCommasToDigits.call(void 0, Math.floor(availableSats)),
      availableSatsTooltipNode
    ] }) })
  ] });
}



exports.SatoshiInputLabel = SatoshiInputLabel;
