
import { Metadata } from "next";
import { I18nProvider } from "@/i18n";
import DashboardPage from "@/components/DashboardPage/DashboardPage";
import DashboardPageButton from "@/components/DashboardPage/DashboardTabButton";
import ProgressByClientSearch from "@/components/ProgressByClientSearch";
import { Suspense} from "react";
import Tabs, { TabsProps } from "@mui/material/Tabs";
import Tab from "@mui/material/Tab";
import Typography from "@mui/material/Typography";
import ProgressByClient from "@/components/ProgressByClient";
import { preloadClientProjects } from "@/app/api/clientprojects";
import { ClientProjectResult} from "@/app/api/clientprojects";
import { useSearchParams } from 'next/navigation';

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

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