import { u as useQuery } from "./useQuery-Dd6y2plw.js";
import { a as apiService } from "./index-Jllr8cp4.js";
const useRealDashboardDataPhp = () => {
  return useQuery({
    queryKey: ["realDashboardDataPhp"],
    queryFn: async () => {
      const response = await apiService.getDashboardData();
      if (response.error) {
        throw new Error(response.error);
      }
      return response.data;
    },
    staleTime: 1e3 * 60 * 5
    // 5 minutes
  });
};
export {
  useRealDashboardDataPhp as u
};
//# sourceMappingURL=useRealDashboardDataPhp-BeS1hgcW.js.map
