"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useFeesStrategy = void 0;
const bignumber_js_1 = require("bignumber.js");
const useFeesStrategy = (a, t) => {
    const allSameEstimatedSeconds = t.networkInfo.every(ni => ni.estimatedSeconds === t.networkInfo[0].estimatedSeconds);
    return t.networkInfo.map(ni => ({
        label: ni.label,
        amount: ni.amount,
        disabled: (ni.label === "slow" || ni.label === "medium") && allSameEstimatedSeconds,
        extra: {
            estimatedMs: (0, bignumber_js_1.BigNumber)(ni.estimatedSeconds * 1000),
        },
        unit: a.currency.units[a.currency.units.length - 1], // Should be sat
    }));
};
exports.useFeesStrategy = useFeesStrategy;
//# sourceMappingURL=react.js.map