//src\app\(main)\analytics\ProjectCompletionReport\page.tsx
import { Metadata } from "next";
import { I18nProvider, getServerI18n } from "@/i18n";
import Typography from "@mui/material/Typography";
import { Suspense } from "react";
import ProjectCompletionReport from "@/components/ProjectCompletionReport";

export const metadata: Metadata = {
  title: "Project Completion Report",
};

const ProjectCompletionReportPage: React.FC = async () => {
  const { t } = await getServerI18n("report");

  return (
    <>
    <Typography variant="h4" marginInlineEnd={2}>
        {t("Project Completion Report")}
      </Typography>
        <I18nProvider namespaces={["report", "common"]}>
          <Suspense fallback={<ProjectCompletionReport.Loading />}>
            <ProjectCompletionReport />
          </Suspense>
        </I18nProvider>
    </>
  );
};
export default ProjectCompletionReportPage;
