You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

22 lines
847 B

  1. import { fetchProjectsLateStart } from "@/app/api/report";
  2. import React from "react";
  3. import LateStartReportGen from "./LateStartReportGen";
  4. import LateStartReportGenLoading from "./LateStartReportGenLoading";
  5. import { fetchAllCustomers } from "@/app/api/customer";
  6. import { fetchAllSubsidiaries } from "@/app/api/subsidiary";
  7. interface SubComponents {
  8. Loading: typeof LateStartReportGenLoading;
  9. }
  10. const LateStartReportGenWrapper: React.FC & SubComponents = async () => {
  11. const clentprojects = await fetchProjectsLateStart();
  12. const customers = await fetchAllCustomers();
  13. const subsidiaries = await fetchAllSubsidiaries();
  14. return <LateStartReportGen projects={clentprojects} clients={customers} subsidiaries={subsidiaries}/>;
  15. };
  16. LateStartReportGenWrapper.Loading = LateStartReportGenLoading;
  17. export default LateStartReportGenWrapper;