選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

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