import { API_ENDPOINTS } from "@/lib/api";
import { contactUsService } from "@/lib/api/services/contact-us-service";
import { useQuery } from "@tanstack/react-query";
import { useMemo } from "react";

export const useReadAllContactUs = () => {
  const queryKey = useMemo(() => [API_ENDPOINTS.CONTACT_US.READ_ALL], []);

  return useQuery({
    queryKey,
    queryFn: () => contactUsService.getAllContactUs(),
  });
};
