//src\components\LateStartReportGen\LateStartReportGenWrapper.tsx
import { fetchProjectsLateStart } from "@/app/api/report";
import React from "react";
import LateStartReportGen from "./LateStartReportGen";
import LateStartReportGenLoading from "./LateStartReportGenLoading";

interface SubComponents {
  Loading: typeof LateStartReportGenLoading;
}

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

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

LateStartReportGenWrapper.Loading = LateStartReportGenLoading;

export default LateStartReportGenWrapper;