//src\components\LateStartReportGen\LateStartReportGenWrapper.tsx
import { fetchProjectsProjectClaims } from "@/app/api/report7";
import React from "react";
import ProjectClaimsReportGen from "./ProjectClaimsReportGen";
import ProjectClaimsReportGenLoading from "./ProjectClaimsReportGenLoading";

interface SubComponents {
  Loading: typeof ProjectClaimsReportGenLoading;
}

const ProjectClaimsReportGenWrapper: React.FC & SubComponents = async () => {
  const clentprojects = await fetchProjectsProjectClaims();

  return <ProjectClaimsReportGen projects={clentprojects} />;
};

ProjectClaimsReportGenWrapper.Loading = ProjectClaimsReportGenLoading;

export default ProjectClaimsReportGenWrapper;