FPSMS-frontend
Non puoi selezionare più di 25 argomenti Gli argomenti devono iniziare con una lettera o un numero, possono includere trattini ('-') e possono essere lunghi fino a 35 caratteri.
 
 

44 righe
1.2 KiB

  1. // import { TypeEnum } from "@/app/utils/typeEnum";
  2. // import DetailSchedule from "@/components/DetailSchedule";
  3. // import { getServerI18n } from "@/i18n";
  4. import DetailSchedule from "../../../../components/DetailSchedule";
  5. import { getServerI18n } from "../../../../i18n";
  6. import { I18nProvider } from "@/i18n";
  7. import Stack from "@mui/material/Stack";
  8. import Typography from "@mui/material/Typography";
  9. import { Metadata } from "next";
  10. import { Suspense } from "react";
  11. export const metadata: Metadata = {
  12. title: "Detail Scheduling",
  13. };
  14. const DetailScheduling: React.FC = async () => {
  15. const { t } = await getServerI18n("schedule");
  16. const type = "detailed";
  17. // preloadClaims();
  18. return (
  19. <>
  20. <Stack
  21. direction="row"
  22. justifyContent="space-between"
  23. flexWrap="wrap"
  24. rowGap={2}
  25. >
  26. <Typography variant="h4" marginInlineEnd={2}>
  27. {t("Detail Scheduling")}
  28. </Typography>
  29. </Stack>
  30. <I18nProvider namespaces={["schedule", "common"]}>
  31. <Suspense fallback={<DetailSchedule.Loading />}>
  32. <DetailSchedule type={type} />
  33. </Suspense>
  34. </I18nProvider>
  35. </>
  36. );
  37. };
  38. export default DetailScheduling;