import {
  SatoshiInputLabel
} from "./chunk-SFWWGAGK.js";
import {
  NumberInput_default
} from "./chunk-M7P5MYNB.js";
import {
  __objRest,
  __spreadProps,
  __spreadValues
} from "./chunk-W7FAWX6T.js";

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

export {
  SatoshiInput,
  SatoshiInput_default
};
