// import DoSearch from "@/components/DoSearch";
// import { getServerI18n } from "@/i18n"
import DoSearch from "../../../components/DoSearch";
import { getServerI18n } from "../../../i18n";
import { Stack, Typography } from "@mui/material";
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 (
    <>
      <Stack
        direction="row"
        justifyContent={"space-between"}
        flexWrap={"wrap"}
        rowGap={2}
      ></Stack>

      <I18nProvider namespaces={["do", "common"]}>
        <Suspense fallback={<DoSearch.Loading />}>
          <DoSearch />
        </Suspense>
      </I18nProvider>
    </>
  );
};

export default DeliveryOrder;
