about us
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import * as api from "../service/SettingService";
|
||||
import { useMutation, useQuery } from "@tanstack/react-query";
|
||||
|
||||
export const useGetAboutUs = () => {
|
||||
return useQuery({
|
||||
queryKey: ["aboutUs"],
|
||||
queryFn: api.getAboutUs,
|
||||
});
|
||||
};
|
||||
|
||||
export const useCreateAboutUs = () => {
|
||||
return useMutation({
|
||||
mutationFn: api.createAboutUs,
|
||||
});
|
||||
};
|
||||
|
||||
export const useDeleteAboutUs = () => {
|
||||
return useMutation({
|
||||
mutationFn: api.deleteAboutUs,
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user