Spaces:
Configuration error
Configuration error
Download frontend/src/hooks/query/use-user-conversations.ts from flyingdarkdev/README: direct link, hf CLI and curl.
- Browser
- Download file 391 Bytes
-
https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/frontend/src/hooks/query/use-user-conversations.ts
- Command line
-
hf download hf://spaces/flyingdarkdev/README/frontend/src/hooks/query/use-user-conversations.ts
-
curl -L -o use-user-conversations.ts https://huggingface.co/spaces/flyingdarkdev/README/resolve/main/frontend/src/hooks/query/use-user-conversations.ts
391 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, | |
| }); | |
| }; | |