import { Metadata } from "next";
import { I18nProvider } from "@/i18n";
import DashboardPage from "@/components/DashboardPage/DashboardPage";
import DashboardPageButton from "@/components/DashboardPage/DashboardTabButton";
import { Suspense } from "react";
import Tabs, { TabsProps } from "@mui/material/Tabs";
import Tab from "@mui/material/Tab";
import StaffUtilizationComponent from "@/components/StaffUtilization";
import ProjectResourceSummarySearch from "@/components/ProjectResourceSummarySearch";
import { ResourceSummaryResult } from "@/app/api/resourcesummary";
import { preloadClientProjects } from "@/app/api/clientprojects";
import ProjectResourceSummaryComponent from "@/components/ProjectResourceSummary";

export const metadata: Metadata = {
  title: "Project Resource Summary",
};

const ProjectResourceSummary: React.FC = () => {
  preloadClientProjects();
  return (
    <I18nProvider namespaces={["dashboard","common"]}>
      <Suspense fallback={<ProjectResourceSummarySearch.Loading />}>
        <ProjectResourceSummarySearch/>
      </Suspense> 
    </I18nProvider>
  );
};
export default ProjectResourceSummary;
