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

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

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

    return (
        <>
            <I18nProvider namespaces={["stockRecord", "navigation", "common"]}>
                <Suspense fallback={<SearchPage.Loading />}>
                    <SearchPage />
                </Suspense>
            </I18nProvider>
        </>
    );
};

export default SearchView;