FPSMS-frontend
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 

55 行
1.7 KiB

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