FPSMS-frontend
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

36 regels
1021 B

  1. import { preloadInventory } from "@/app/api/inventory";
  2. import InventorySearch from "@/components/InventorySearch";
  3. import { I18nProvider, getServerI18n } from "@/i18n";
  4. import { Stack, Typography } from "@mui/material";
  5. import { Metadata } from "next";
  6. import { Suspense } from "react";
  7. export const metadata: Metadata = {
  8. title: "Inventory"
  9. }
  10. const Inventory: React.FC = async () => {
  11. const { t } = await getServerI18n("inventory", "common")
  12. preloadInventory()
  13. return <>
  14. <Stack
  15. direction="row"
  16. justifyContent={"space-between"}
  17. flexWrap={"wrap"}
  18. rowGap={2}
  19. >
  20. <Typography variant="h4" marginInlineEnd={2}>
  21. {t("Inventory")}
  22. </Typography>
  23. </Stack>
  24. <I18nProvider namespaces={["common", "inventory"]}>
  25. <Suspense fallback={<InventorySearch.Loading />}>
  26. <InventorySearch />
  27. </Suspense>
  28. </I18nProvider>
  29. </>;
  30. }
  31. export default Inventory;