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("itemPrice", "importExcel");

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

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

export default ItemPriceSetting;