import { jsx as i, jsxs as s } from "react/jsx-runtime";
import { formatUnits as e } from "ethers";
import { formatTinyNumber as m } from "../utils/formatters/formatTinyNumber.js";
const c = ({ decimals: t, value: n, options: p, className: o }) => {
  const r = m(
    parseFloat(t ? e(n, t) : n) ?? 0,
    p
  );
  return Array.isArray(r) ? /* @__PURE__ */ s("span", { className: o, children: [
    r[0],
    /* @__PURE__ */ i("span", { className: "px-[1px] align-sub text-[10px]", children: r[1] }),
    r[2]
  ] }) : /* @__PURE__ */ i("span", { className: o, children: r });
};
export {
  c as TinyNumber
};
//# sourceMappingURL=TinyNumber.js.map
