Object.defineProperties(exports, {
	__esModule: { value: true },
	[Symbol.toStringTag]: { value: "Module" }
});
require("../chunk-BN4qSVkS.cjs");
const require_components_NumberInput = require("./NumberInput.cjs");
const require_components_SatoshiInputLabel = require("./SatoshiInputLabel.cjs");
let react = require("react");
let _emotion_react_jsx_runtime = require("@emotion/react/jsx-runtime");
//#region src/components/SatoshiInput.tsx
function SatoshiInput({ label, maxValue, error, ...rest }) {
	return /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsxs)(react.Fragment, { children: [label && /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)(require_components_SatoshiInputLabel.SatoshiInputLabel, {
		text: label.text,
		availableSats: label.availableSats,
		showTooltip: label.showTooltip
	}), /* @__PURE__ */ (0, _emotion_react_jsx_runtime.jsx)(require_components_NumberInput.NumberInput, {
		placeholder: "SATs",
		...rest,
		allowDecimals: false,
		icon: {
			name: "SatoshiRounded",
			side: "left"
		},
		maxValue: maxValue ? Math.floor(maxValue) : void 0,
		error
	})] });
}
//#endregion
exports.SatoshiInput = SatoshiInput;
exports.default = SatoshiInput;
