"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useBnToNumber = void 0;
var react_1 = require("react");
var utils_1 = require("../utils");
function useBnToNumber(n, d) {
    return (0, react_1.useMemo)(function () {
        if (!n || !d)
            return undefined;
        return (0, utils_1.bnToNumber)(n, d);
    }, [n, d]);
}
exports.useBnToNumber = useBnToNumber;
//# sourceMappingURL=useBn.js.map