FPSMS-frontend
Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.
 
 

43 linhas
1.2 KiB

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