import { useQuery } from "@tanstack/react-query";
import { AboutService } from "../service/Service";

export const useAboutData = () => {
  return useQuery({
    queryKey: ["about-us"],
    queryFn: AboutService.getAboutUs,
    staleTime: 5 * 60 * 1000, // 5 دقیقه
    gcTime: 10 * 60 * 1000, // 10 دقیقه
  });
};
