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.

19 lines
642 B

  1. import { fetchProjectsCashFlow } from "@/app/api/cashflow";
  2. import React from "react";
  3. import ProgressCashFlowSearch from "./ProgressCashFlowSearch";
  4. import ProgressCashFlowSearchSearchLoading from "./ProgressCashFlowSearchLoading";
  5. interface SubComponents {
  6. Loading: typeof ProgressCashFlowSearchSearchLoading;
  7. }
  8. const ProgressCashFlowSearchWrapper: React.FC & SubComponents = async () => {
  9. const clentprojects = await fetchProjectsCashFlow();
  10. return <ProgressCashFlowSearch projects={clentprojects} />;
  11. };
  12. ProgressCashFlowSearchWrapper.Loading = ProgressCashFlowSearchSearchLoading;
  13. export default ProgressCashFlowSearchWrapper;