import { useQuery } from '@tanstack/react-query';
import { apiClient } from '../lib/api-client';
export function useFiles() {
    return useQuery({
        queryKey: ['files'],
        queryFn: async () => {
            const result = await apiClient.listFiles();
            return result;
        },
        staleTime: 10000,
        refetchOnWindowFocus: true,
        retry: 1,
    });
}
//# sourceMappingURL=useFiles.js.map