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

export const metadata: Metadata = {
  title: "Price Inquiry",
};

const ItemPriceSetting: React.FC = async () => {
  const { t } = await getServerI18n("inventory", "common");

  return (
    <>
<PageTitleBar title={t("Price Inquiry", { ns: "common" })} className="mb-4" />

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

export default ItemPriceSetting;