import { useQuery } from "@tanstack/react-query";
import { getFaq } from "../service/FaqService";

export const useGetFaq = (page: string) => {
  return useQuery({
    queryKey: ["faq"],
    queryFn: () => getFaq(page),
    enabled: !!page,
  });
};
