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.
 
 

73 lines
1.5 KiB

  1. import { Metadata } from "next";
  2. import { getServerI18n, I18nProvider } from "@/i18n";
  3. import Typography from "@mui/material/Typography";
  4. import { Stack } from "@mui/material";
  5. import { Suspense } from "react";
  6. import QcItemAllTabs from "@/components/QcItemAll/QcItemAllTabs";
  7. import Tab0ItemQcCategoryMapping from "@/components/QcItemAll/Tab0ItemQcCategoryMapping";
  8. import Tab1QcCategoryQcItemMapping from "@/components/QcItemAll/Tab1QcCategoryQcItemMapping";
  9. import Tab2QcCategoryManagement from "@/components/QcItemAll/Tab2QcCategoryManagement";
  10. import Tab3QcItemManagement from "@/components/QcItemAll/Tab3QcItemManagement";
  11. export const metadata: Metadata = {
  12. title: "Qc Item All",
  13. };
  14. const qcItemAll: React.FC = async () => {
  15. const { t } = await getServerI18n("qcItemAll");
  16. return (
  17. <>
  18. <Stack
  19. direction="row"
  20. justifyContent="space-between"
  21. flexWrap="wrap"
  22. rowGap={2}
  23. sx={{ mb: 3 }}
  24. >
  25. <Typography variant="h4" marginInlineEnd={2}>
  26. {t("Qc Item All")}
  27. </Typography>
  28. </Stack>
  29. <Suspense fallback={<div>Loading...</div>}>
  30. <I18nProvider namespaces={["common", "qcItemAll", "qcCategory", "qcItem"]}>
  31. <QcItemAllTabs
  32. tab0Content={<Tab0ItemQcCategoryMapping />}
  33. tab1Content={<Tab1QcCategoryQcItemMapping />}
  34. tab2Content={<Tab2QcCategoryManagement />}
  35. tab3Content={<Tab3QcItemManagement />}
  36. />
  37. </I18nProvider>
  38. </Suspense>
  39. </>
  40. );
  41. };
  42. export default qcItemAll;