zzz / frontend /src /hooks /query /use-user-conversations.ts
ar08's picture
Upload 1040 files
246d201 verified
raw
history blame contribute delete
404 Bytes
import { useQuery } from "@tanstack/react-query";
import OpenHands from "#/api/open-hands";
import { useIsAuthed } from "./use-is-authed";
export const useUserConversations = () => {
const { data: userIsAuthenticated } = useIsAuthed();
return useQuery({
queryKey: ["user", "conversations"],
queryFn: OpenHands.getUserConversations,
enabled: !!userIsAuthenticated,
});
};