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

var _chunkPATBY6OZcjs = require('./chunk-PATBY6OZ.cjs');


var _chunkJTXWWEZAcjs = require('./chunk-JTXWWEZA.cjs');




var _chunkZ6EUSUADcjs = require('./chunk-Z6EUSUAD.cjs');

// src/components/SatoshiInput.tsx
var _react = require('react');
var _jsxruntime = require('@emotion/react/jsx-runtime');
function SatoshiInput(_a) {
  var _b = _a, {
    label,
    maxValue,
    error
  } = _b, rest = _chunkZ6EUSUADcjs.__objRest.call(void 0, _b, [
    "label",
    "maxValue",
    "error"
  ]);
  return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _react.Fragment, { children: [
    label && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, 
      _chunkPATBY6OZcjs.SatoshiInputLabel,
      {
        text: label.text,
        availableSats: label.availableSats,
        showTooltip: label.showTooltip
      }
    ),
    /* @__PURE__ */ _jsxruntime.jsx.call(void 0, 
      _chunkJTXWWEZAcjs.NumberInput_default,
      _chunkZ6EUSUADcjs.__spreadProps.call(void 0, _chunkZ6EUSUADcjs.__spreadValues.call(void 0, {
        placeholder: "SATs"
      }, rest), {
        allowDecimals: false,
        icon: { name: "SatoshiRounded", side: "left" },
        maxValue: maxValue ? Math.floor(maxValue) : void 0,
        error
      })
    )
  ] });
}
var SatoshiInput_default = SatoshiInput;




exports.SatoshiInput = SatoshiInput; exports.SatoshiInput_default = SatoshiInput_default;
