import { fetchResourceSummary } from "@/app/api/resourcesummary";
import React from "react";
import ProjectResourceSummarySearch from "./ProjectResourceSummarySearch";
import ProjectResourceSummarySearchLoading from "./ProjectResourceSummarySearchLoading";

interface SubComponents {
  Loading: typeof ProjectResourceSummarySearchLoading;
}

const ProjectResourceSummarySearchWrapper: React.FC & SubComponents = async () => {
  const clentprojects = await fetchResourceSummary();

  return <ProjectResourceSummarySearch projects={clentprojects} />;
};

ProjectResourceSummarySearchWrapper.Loading = ProjectResourceSummarySearchLoading;

export default ProjectResourceSummarySearchWrapper;


