import { fetchAllClientProjects } from "@/app/api/clientprojects";
import React from "react";
import ProgressByClientSearch from "./ProgressByClientSearch";
import ProgressByClientSearchLoading from "./ProgressByClientSearchLoading";

interface SubComponents {
  Loading: typeof ProgressByClientSearchLoading;
}

const ProgressByClientSearchWrapper: React.FC & SubComponents = async () => {
  const clientprojects = await fetchAllClientProjects();
  return <ProgressByClientSearch clientProjects={clientprojects} />;
};

ProgressByClientSearchWrapper.Loading = ProgressByClientSearchLoading;

export default ProgressByClientSearchWrapper;
