import { SearchParams } from "@/app/utils/fetchUtil";
import PickOrderDetail from "@/components/PickOrderDetail";
import { I18nProvider } from "@/i18n";
import { Metadata } from "next";
import { Suspense } from "react";

export const metadata: Metadata = {
  title: "Stock Out Issue Record Detail",
};
type Props = {} & SearchParams;

const StockOutIssueRecordDetail: React.FC<Props> = async ({ searchParams }) => {
  return (
    <>
      <I18nProvider namespaces={["pickOrder","navigation","common","purchaseOrder"]}>
        <Suspense fallback={<PickOrderDetail.Loading />}>
          <PickOrderDetail consoCode={`${searchParams["consoCode"]}`} />
        </Suspense>
      </I18nProvider>
    </>
  );
};

export default StockOutIssueRecordDetail;
