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

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

export { useGetBridgingTransaction };
//# sourceMappingURL=use-get-bridging-transaction.js.map
//# sourceMappingURL=use-get-bridging-transaction.js.map