import GeneralLoading from "@/components/General/GeneralLoading";
import PageTitleBar from "@/components/PageTitleBar";
import JoPickOrderList from "@/components/JoWorkbench/JoPickOrderList";
import { I18nProvider, getServerI18n } from "@/i18n";
import { Metadata } from "next";
import React, { Suspense } from "react";

export const metadata: Metadata = {
  title: "Job Order Pick List",
};

const JoWorkbenchPage = async () => {
  const { t } = await getServerI18n("jo");

  return (
    <>
      <PageTitleBar title={t("Job Order Pickexcution", { defaultValue: "Job Order Pickexcution" })} className="mb-4" />
      <I18nProvider namespaces={["jo", "common", "pickOrder", "purchaseOrder", "dashboard"]}>
        <Suspense fallback={<GeneralLoading />}>
          <JoPickOrderList />
        </Suspense>
      </I18nProvider>
    </>
  );
};

export default JoWorkbenchPage;