import SearchPage from "@/components/StockIssue/index";
import { getServerI18n } from "@/i18n";
import { I18nProvider } from "@/i18n";
import { Metadata } from "next";
import { Suspense } from "react";

export const metadata: Metadata = {
  title: "Stock Issue",
};

const SearchView: React.FC = async () => {
  return (
    <>
      <I18nProvider namespaces={["stockIssue", "navigation", "common"]}>
        <Suspense fallback={<SearchPage.Loading />}>
          <SearchPage />
        </Suspense>
      </I18nProvider>
    </>
  );
};

export default SearchView;
