import { useMutation } from "@tanstack/react-query"; import { wwwAXIOS } from "@/Www"; export default function usePostToil() { return useMutation({ mutationFn: async ({ noteID, commentary, }: { noteID: string; commentary: string; }) => { await wwwAXIOS.post("/toil", { noteID, commentary, }); }, }); }