//src\components\LateStartReportGen\LateStartReportGenWrapper.tsx
import { fetchProjectsFinancialStatus, fetchTeamCombo } from "@/app/api/reporte1";
import React from "react";
import FinancialStatusReportGen from "./FinancialStatusReportGen";
import FinancialStatusReportGenLoading from "./FinancialStatusReportGenLoading";

interface SubComponents {
  Loading: typeof FinancialStatusReportGenLoading;
}

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

  const teamCombo = await fetchTeamCombo()

  return <FinancialStatusReportGen projects={clentprojects} teamCombo={teamCombo}/>;
};

FinancialStatusReportGenWrapper.Loading = FinancialStatusReportGenLoading;

export default FinancialStatusReportGenWrapper;