import { Metadata } from "next";
import { I18nProvider } from "@/i18n";
import DashboardPage from "@/components/DashboardPage/DashboardPage";
import DashboardPageButton from "@/components/DashboardPage/DashboardTabButton";
import ProgressByTeamSearch from "@/components/ProgressByTeamSearch";
import { Suspense } from "react";
import Tabs, { TabsProps } from "@mui/material/Tabs";
import Tab from "@mui/material/Tab";
import Typography from "@mui/material/Typography";
import ProjectResourceConsumptionRankingDisplay from "@/components/ProjectResourceConsumptionRanking";
import { preloadClientProjects } from "@/app/api/clientprojects";

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

const ProjectResourceConsumptionRanking: React.FC = () => {
  preloadClientProjects();
  return (
    <I18nProvider namespaces={["dashboard","common"]}>
      <ProjectResourceConsumptionRankingDisplay/>
    </I18nProvider>
  );
};
export default ProjectResourceConsumptionRanking;
