Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
 
 

20 rader
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;