"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useLatestFirmware = void 0;
const index_1 = require("../../manager/index");
const live_env_1 = require("@ledgerhq/live-env");
const device_react_1 = require("@ledgerhq/device-react");
const HttpManagerApiRepositoryFactory_1 = require("../factories/HttpManagerApiRepositoryFactory");
function useLatestFirmware(deviceInfo, managerApiRepository = HttpManagerApiRepositoryFactory_1.HttpManagerApiRepositoryFactory.getInstance()) {
    return (0, device_react_1.useGetLatestFirmware)({
        deviceInfo,
        providerId: (0, index_1.getProviderId)(deviceInfo),
        userId: (0, live_env_1.getEnv)("USER_ID"),
        managerApiRepository,
    });
}
exports.useLatestFirmware = useLatestFirmware;
//# sourceMappingURL=useLatestFirmware.js.map