"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.useAssetData = void 0;
const api_1 = require("../state-manager/api");
function useAssetData({ currencyIds, product, version, isStaging }) {
    const { data, isLoading, error, isSuccess, refetch, isFetching, isError } = (0, api_1.useGetAssetDataQuery)({
        currencyIds,
        product,
        version,
        isStaging,
    });
    const isInitialLoading = isLoading || isFetching;
    return {
        data,
        isLoading: isInitialLoading,
        error,
        isSuccess,
        isError,
        refetch,
    };
}
exports.useAssetData = useAssetData;
//# sourceMappingURL=useAssetData.js.map