import { useQuery } from "@tanstack/react-query";
import * as api from "../service/ContactService";

export const useGetContactUs = (page: number = 1, limit: number = 10) => {
  return useQuery({
    queryKey: ["contactUs", page, limit],
    queryFn: () => api.getContactUs(page, limit),
  });
};
