import { useGetAssetDataQuery } from "../state-manager/api";
export function useAssetData({ currencyIds, product, version, isStaging }) {
    const { data, isLoading, error, isSuccess, refetch, isFetching, isError } = useGetAssetDataQuery({
        currencyIds,
        product,
        version,
        isStaging,
    });
    const isInitialLoading = isLoading || isFetching;
    return {
        data,
        isLoading: isInitialLoading,
        error,
        isSuccess,
        isError,
        refetch,
    };
}
//# sourceMappingURL=useAssetData.js.map