// import DoSearch from "@/components/DoSearch";
// import { getServerI18n } from "@/i18n"
import DoSearch from "../../../components/DoSearch";
import { getServerI18n } from "../../../i18n";
import PageTitleBar from "@/components/PageTitleBar";
import { I18nProvider } from "@/i18n";
import { Metadata } from "next";
import { Suspense } from "react";

export const metadata: Metadata = {
  title: "Delivery Order",
};

const DeliveryOrder: React.FC = async () => {
  const { t } = await getServerI18n("do");

  return (
    <>
      <PageTitleBar title={t("Delivery Order")} className="mb-4" />
      <I18nProvider namespaces={["do","navigation","common","home"]}>
        <Suspense fallback={<DoSearch.Loading />}>
          <DoSearch />
        </Suspense>
      </I18nProvider>
    </>
  );
};

export default DeliveryOrder;
