// useAdminSetupRequirements.ts
import { useQuery } from "@tanstack/react-query";
import {
  fetchRequirementSatisfied,
  AdminSetupAlertResponse,
} from "@/record-management/services/api/alertService";

export function useAdminSetupRequirements(unitId?: string) {
  return useQuery<AdminSetupAlertResponse>({
    queryKey: ["admin-setup-requirements", unitId],
    queryFn: () => fetchRequirementSatisfied(unitId!),
    enabled: !!unitId,
  });
}
