import { preloadInventory } from "@/app/api/inventory"; import InventorySearch from "@/components/InventorySearch"; import { I18nProvider, getServerI18n } from "@/i18n"; import { Stack, Typography } from "@mui/material"; import { Metadata } from "next"; import { Suspense } from "react"; export const metadata: Metadata = { title: "Inventory" } const Inventory: React.FC = async () => { const { t } = await getServerI18n("inventory", "common") preloadInventory() return <> {t("Inventory")} }> ; } export default Inventory;