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

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

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