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 ProgressByTeam from "@/components/ProgressByTeam";

export const metadata: Metadata = {
  title: "Project Status by Team",
};

const ProjectStatusByTeam: React.FC = () => {
  return (
    <I18nProvider namespaces={["dashboard"]}>
      <Typography variant="h4" marginInlineEnd={2}>
        Project Status by Team
      </Typography>
      <Suspense fallback={<ProgressByTeamSearch.Loading />}>
        <ProgressByTeamSearch />
      </Suspense>
      <ProgressByTeam />
    </I18nProvider>
  );
};
export default ProjectStatusByTeam;
