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

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

export { useGetFederatedPlatformActivities };
//# sourceMappingURL=use-get-federated-platform-activities.js.map
//# sourceMappingURL=use-get-federated-platform-activities.js.map