//src\components\LateStartReportGen\LateStartReportGenWrapper.tsx
import { fetchProjectsDelay } from "@/app/api/report2";
import React from "react";
import DelayReportGen from "./DelayReportGen";
import DelayReportGenLoading from "./DelayReportGenLoading";

interface SubComponents {
  Loading: typeof DelayReportGenLoading;
}

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

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

DelayReportGenWrapper.Loading = DelayReportGenLoading;

export default DelayReportGenWrapper;