//src\components\LateStartReportGen\LateStartReportGenWrapper.tsx
import { fetchProjectsCashFlow } from "@/app/api/cashflow";
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 fetchProjectsCashFlow();

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

LateStartReportGenWrapper.Loading = LateStartReportGenLoading;

export default LateStartReportGenWrapper;