mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-16 05:13:43 +00:00
15 lines
397 B
TypeScript
15 lines
397 B
TypeScript
import { useMutation } from "@tanstack/react-query";
|
|
|
|
import { apiRequest } from "@app/config/request";
|
|
|
|
import { TCreateUserWishDto } from "./types";
|
|
|
|
export const useCreateUserWish = () => {
|
|
return useMutation<{}, {}, TCreateUserWishDto>({
|
|
mutationFn: async (dto) => {
|
|
const { data } = await apiRequest.post("/api/v1/user-engagement/me/wish", dto);
|
|
return data;
|
|
}
|
|
});
|
|
};
|