import { useQuery } from "@tanstack/react-query";
import { apiClient } from "@/api/client";

export function useDownloadUrl(objectId: string) {
  return useQuery({
    queryKey: ["download-url", objectId],
    queryFn: () => apiClient.getParticleDownloadUrl(objectId),
  });
}
