
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("pickOrder");



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

export default PickOrder;
