import React from "react";
import ProjectManhourSummaryReportLoading from "./ProjectManhourSummaryReportLoading";
import ProjectManhourSummaryReport from "./ProjectManhourSummaryReport";
import { fetchTeam } from "@/app/api/team";

interface SubComponents {
    Loading: typeof ProjectManhourSummaryReportLoading;
  }

const ProjectManhourSummaryReportWrapper: React.FC & SubComponents = async () => {
    const teams = await fetchTeam()
    return <ProjectManhourSummaryReport teams={teams}/>
}

ProjectManhourSummaryReportWrapper.Loading = ProjectManhourSummaryReportLoading;

export default ProjectManhourSummaryReportWrapper;