feat: autoplay inbound clips

This commit is contained in:
talksik
2026-03-21 17:59:41 -07:00
parent 18f587864f
commit 4a4d213eb6
6 changed files with 122 additions and 7 deletions
+3 -2
View File
@@ -1,9 +1,10 @@
import { useQuery } from "@tanstack/react-query";
import { apiClient } from "@/api/client";
export function useDownloadUrl(objectId: string) {
export function useDownloadUrl(objectId?: string) {
return useQuery({
queryKey: ["download-url", objectId],
queryFn: () => apiClient.getParticleDownloadUrl(objectId),
queryFn: () => apiClient.getParticleDownloadUrl(objectId!),
enabled: !!objectId,
});
}