FPSMS-frontend
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 

60 líneas
1.8 KiB

  1. // import { TypeEnum } from "@/app/utils/typeEnum";
  2. // import RoughSchedule from "@/components/RoughSchedule";
  3. // import { getServerI18n, I18nProvider } from "@/i18n";
  4. import { testRoughSchedule } from "@/app/api/scheduling/actions";
  5. import { TypeEnum } from "../../../../app/utils/typeEnum";
  6. import RoughSchedule from "../../../../components/RoughSchedule";
  7. import { getServerI18n, I18nProvider } from "../../../../i18n";
  8. import Add from "@mui/icons-material/Add";
  9. import Button from "@mui/material/Button";
  10. import Stack from "@mui/material/Stack";
  11. import Typography from "@mui/material/Typography";
  12. import { Metadata } from "next";
  13. import Link from "next/link";
  14. import { Suspense } from "react";
  15. export const metadata: Metadata = {
  16. title: "Demand Forecast",
  17. };
  18. const roughScheduling: React.FC = async () => {
  19. // const project = TypeEnum.PRODUCT
  20. const { t } = await getServerI18n("schedule");
  21. const type = "rough";
  22. // preloadClaims();
  23. // async function testingRoughSchedule() {
  24. // await testRoughSchedule();
  25. // }
  26. return (
  27. <>
  28. <Stack
  29. direction="row"
  30. justifyContent="space-between"
  31. flexWrap="wrap"
  32. rowGap={2}
  33. >
  34. <Typography variant="h4" marginInlineEnd={2}>
  35. {t("Demand Forecast")}
  36. </Typography>
  37. {/* <Button
  38. variant="contained"
  39. startIcon={<Add />}
  40. onClick={() => testingRoughSchedule}
  41. >
  42. {t("Test Rough Scheduling")}
  43. </Button> */}
  44. </Stack>
  45. <I18nProvider namespaces={["schedule","navigation","common"]}>
  46. <Suspense fallback={<RoughSchedule.Loading />}>
  47. <RoughSchedule type={type} />
  48. </Suspense>
  49. </I18nProvider>
  50. </>
  51. );
  52. };
  53. export default roughScheduling;