import { getBridgingTransactions } from '@rss3/api-core';
import { useQuery } from '@tanstack/react-query';

function useGetBridgingTransactions(params, options) {
  const queryKey = ["useGetBridgingTransactions", params];
  const query = useQuery({
    queryKey,
    queryFn: () => {
      const args = Array.isArray(params) ? params : [params];
      return getBridgingTransactions(
        ...args
      );
    },
    ...options
  });
  return {
    ...query,
    queryKey
  };
}

export { useGetBridgingTransactions };
//# sourceMappingURL=use-get-bridging-transactions.js.map
//# sourceMappingURL=use-get-bridging-transactions.js.map