import { useQueryClient as c, useQuery as u } from "@tanstack/react-query";
const o = (e) => {
  const a = c(), { data: t } = u({
    queryKey: ["walletBalances", e],
    queryFn: async () => a.getQueryData([
      "walletBalances",
      e
    ]) ?? {}
  });
  return {
    walletBalance: t ?? {},
    setWalletBalance: (l, n) => {
      a.setQueryData(
        ["walletBalances", l],
        (r) => ({
          ...r,
          ...n
        })
      );
    }
  };
};
export {
  o as useWalletBalance
};
//# sourceMappingURL=useWalletBalance.js.map
