import {getPP, updatePrivacyPolicy} from "@/service/apis/privacy-policy";
import {useMutation, useQuery} from "@tanstack/react-query";

export const useUpdatePrivacyPolicy = () =>
  useMutation({
    mutationFn: updatePrivacyPolicy,
  });

export const useGetPrivacyPolicy = () => useQuery({
  queryKey:['get-pp'],
  queryFn:getPP,
  retry:false,
  refetchOnWindowFocus:false
})