Files
dmenu-plus-front/src/app/[name]/(Main)/ai/hooks/useAiData.ts
T
hamid zarghami a9fc7c4ff7 compeleted ai
2026-07-23 11:14:07 +03:30

9 lines
188 B
TypeScript

import { useMutation } from "@tanstack/react-query";
import * as api from "../service/AiService";
export const useChat = () => {
return useMutation({
mutationFn: api.chat,
});
};