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.
 
 

50 line
1.5 KiB

  1. import ProductionProcessPage from "../../../components/ProductionProcess/ProductionProcessPage";
  2. import { I18nProvider, getServerI18n } from "../../../i18n";
  3. import Add from "@mui/icons-material/Add";
  4. import Button from "@mui/material/Button";
  5. import Stack from "@mui/material/Stack";
  6. import Typography from "@mui/material/Typography";
  7. import { Metadata } from "next";
  8. import Link from "next/link";
  9. import { Suspense } from "react";
  10. import { fetchPrinterCombo } from "@/app/api/settings/printer";
  11. export const metadata: Metadata = {
  12. title: "Claims",
  13. };
  14. const production: React.FC = async () => {
  15. const { t } = await getServerI18n("common");
  16. const printerCombo = await fetchPrinterCombo();
  17. return (
  18. <>
  19. <Stack
  20. direction="row"
  21. justifyContent="space-between"
  22. flexWrap="wrap"
  23. rowGap={2}
  24. >
  25. <Typography variant="h4" marginInlineEnd={2}>
  26. {t("Production Process")}
  27. </Typography>
  28. {/* Optional: Remove or modify create button, because creation is done via API automatically */}
  29. {/* <Button
  30. variant="contained"
  31. startIcon={<Add />}
  32. LinkComponent={Link}
  33. href="/production/create"
  34. >
  35. {t("Create Process")}
  36. </Button> */}
  37. </Stack>
  38. <I18nProvider namespaces={["common", "production","purchaseOrder","jo"]}>
  39. <ProductionProcessPage printerCombo={printerCombo} /> {/* Use new component */}
  40. </I18nProvider>
  41. </>
  42. );
  43. };
  44. export default production;