FPSMS-frontend
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 

50 rindas
1.4 KiB

  1. import { TypeEnum } from "@/app/utils/typeEnum";
  2. import RoughSchedule from "@/components/RoughSchedule";
  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 RoughScheduleDetailView from "@/components/RoughScheduleDetail/RoughScheudleDetailView";
  12. export const metadata: Metadata = {
  13. title: "Demand Forecast Detail",
  14. };
  15. const roughSchedulingDetail: React.FC = async () => {
  16. const project = TypeEnum.PRODUCT
  17. const { t } = await getServerI18n(project);
  18. // preloadClaims();
  19. return (
  20. <>
  21. <Stack
  22. direction="row"
  23. justifyContent="space-between"
  24. flexWrap="wrap"
  25. rowGap={2}
  26. >
  27. <Typography variant="h4" marginInlineEnd={2}>
  28. {t("Demand Forecast Detail")}
  29. </Typography>
  30. {/* <Button
  31. variant="contained"
  32. startIcon={<Add />}
  33. LinkComponent={Link}
  34. href="product/create"
  35. >
  36. {t("Create product")}
  37. </Button> */}
  38. </Stack>
  39. <Suspense fallback={<RoughScheduleDetailView.Loading />}>
  40. <RoughScheduleDetailView />
  41. </Suspense>
  42. </>
  43. );
  44. };
  45. export default roughSchedulingDetail;