FPSMS-frontend
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.
 
 
 

52 regels
1.5 KiB

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