//src\components\LateStartReportGen\LateStartReportGenWrapper.tsx
import { fetchProjectsProjectCompletionWO } from "@/app/api/report6";
import React from "react";
import ProjectCompletionReportWOGen from "./ProjectCompletionReportWOGen";
import ProjectCompletionReportWOGenLoading from "./ProjectCompletionReportWOGenLoading";

interface SubComponents {
  Loading: typeof ProjectCompletionReportWOGenLoading;
}

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

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

ProjectCompletionReportWOGenWrapper.Loading = ProjectCompletionReportWOGenLoading;

export default ProjectCompletionReportWOGenWrapper;