A decentralized music tracking and discovery platform built on AT Protocol 馃幍
at fix/spotify 14 lines 388 B view raw
1import { useQuery } from "@tanstack/react-query"; 2import { getFile, getFiles } from "../api/googledrive"; 3 4export const useFilesQuery = (id?: string) => 5 useQuery({ 6 queryKey: ["googledrive", "files", id], 7 queryFn: () => getFiles(id), 8 }); 9 10export const useFileQuery = (id: string) => 11 useQuery({ 12 queryKey: ["googledrive", "file", id], 13 queryFn: () => getFile(id), 14 });