File size: 411 Bytes
c59d808 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
import { chatService } from "@/services/chat-service";
import { useQuery } from "@tanstack/react-query";
export const chatKeys = {
all: ["chat"] as const,
};
// TODO: DELETE and replace with actual hook implementation
export function useChatMessage() {
return useQuery({
queryKey: chatKeys.all,
queryFn: chatService.getMessage,
staleTime: 5 * 60 * 1000, // 5 minutes
retry: false,
});
}
|