|
- import { preloadBomCombo } from "@/app/api/bom";
- import JodetailSearch from "@/components/Jodetail/JodetailSearch";
- import { I18nProvider, getServerI18n } from "@/i18n";
- import { Stack, Typography } from "@mui/material";
- import { Metadata } from "next";
- import React, { Suspense } from "react";
- import GeneralLoading from "@/components/General/GeneralLoading";
- import JodetailSearchWrapper from "@/components/Jodetail/FinishedGoodSearchWrapper";
- export const metadata: Metadata = {
- title: "Job Order Pickexcution"
- }
-
- const jo: React.FC = async () => {
- const { t } = await getServerI18n("jo");
-
- preloadBomCombo()
-
- return (
- <>
- <Stack
- direction="row"
- justifyContent="space-between"
- flexWrap="wrap"
- rowGap={2}
- >
- <Typography variant="h4" marginInlineEnd={2}>
- {t("Job Order Pickexcution")}
- </Typography>
- </Stack>
- <I18nProvider namespaces={["jo", "common", "pickOrder"]}>
- <Suspense fallback={<GeneralLoading />}>
- <JodetailSearchWrapper />
- </Suspense>
- </I18nProvider>
- </>
- )
- }
-
- export default jo;
|