
import { SearchParams } from "@/app/utils/fetchUtil";
import FinishedGoodSearchWrapper from "@/components/FinishedGoodSearch";
import { getServerI18n, I18nProvider } from "@/i18n";
import { Stack, Typography } from "@mui/material";
import { Metadata } from "next";
import { Suspense } from "react";

export const metadata: Metadata = {
  title: "Finished Good Detail",
};
type Props = {} & SearchParams;

const PickOrder: React.FC<Props> = async ({ searchParams }) => {
  const { t } = await getServerI18n("finishedGood");



  return (
    <>
       <I18nProvider namespaces={["finishedGood","navigation","common","pickOrder","ticketReleaseTable","purchaseOrder","home","item"]}>
        <Suspense fallback={<FinishedGoodSearchWrapper.Loading />}>
          <FinishedGoodSearchWrapper />
        </Suspense>
      </I18nProvider>
    </>
  );
};

export default PickOrder;
