Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.
 
 

20 řádky
682 B

  1. import React from "react";
  2. import { fetchAllCustomers } from "@/app/api/customer";
  3. import { fetchTeam } from "@/app/api/team";
  4. import CostAndExpenseReport from "./CostAndExpenseReport";
  5. import CostAndExpenseReportLoading from "./CostAndExpenseReportLoading";
  6. interface SubComponents {
  7. Loading: typeof CostAndExpenseReportLoading;
  8. }
  9. const CostAndExpenseReportWrapper: React.FC & SubComponents = async () => {
  10. const customers = await fetchAllCustomers()
  11. const teams = await fetchTeam ()
  12. return <CostAndExpenseReport team={teams} customer={customers}/>
  13. };
  14. CostAndExpenseReportWrapper.Loading = CostAndExpenseReportLoading;
  15. export default CostAndExpenseReportWrapper;