You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

29 lines
958 B

  1. import { Metadata } from "next";
  2. import { Suspense } from "react";
  3. import { I18nProvider, getServerI18n } from "@/i18n";
  4. import ResourceOverconsumptionReport from "@/components/ResourceOverconsumptionReport";
  5. import { Typography } from "@mui/material";
  6. export const metadata: Metadata = {
  7. title: "Staff Monthly Work Hours Analysis Report",
  8. };
  9. const StaffMonthlyWorkHoursAnalysisReport: React.FC = async () => {
  10. const { t } = await getServerI18n("User Group");
  11. return (
  12. <>
  13. <Typography variant="h4" marginInlineEnd={2}>
  14. {t("Project Resource Overconsumption Report")}
  15. </Typography>
  16. <I18nProvider namespaces={["report", "common"]}>
  17. <Suspense fallback={<ResourceOverconsumptionReport.Loading />}>
  18. <ResourceOverconsumptionReport />
  19. </Suspense>
  20. </I18nProvider>
  21. </>
  22. );
  23. };
  24. export default StaffMonthlyWorkHoursAnalysisReport;