import { Metadata } from "next";
import { I18nProvider } from "@/i18n";
import { preloadClientProjects } from "@/app/api/clientprojects";
import { searchParamsProps } from "@/app/utils/fetchUtil";
import ProjectFinancialSummaryV2 from "@/components/ProjectFinancialSummaryV2";

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

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