FPSMS-frontend
Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 

54 wiersze
1.3 KiB

  1. import { TypeEnum } from "@/app/utils/typeEnum";
  2. import ItemsSearch from "@/components/ItemsSearch";
  3. import { getServerI18n } from "@/i18n";
  4. import Add from "@mui/icons-material/Add";
  5. import Button from "@mui/material/Button";
  6. import Stack from "@mui/material/Stack";
  7. import Typography from "@mui/material/Typography";
  8. import { Metadata } from "next";
  9. import Link from "next/link";
  10. import { Suspense } from "react";
  11. import { I18nProvider } from "@/i18n";
  12. export const metadata: Metadata = {
  13. title: "Product",
  14. };
  15. const productSetting: React.FC = async () => {
  16. const project = TypeEnum.PRODUCT;
  17. const { t } = await getServerI18n("items");
  18. // preloadClaims();
  19. return (
  20. <>
  21. <Stack
  22. direction="row"
  23. justifyContent="space-between"
  24. flexWrap="wrap"
  25. rowGap={2}
  26. >
  27. <Typography variant="h4" marginInlineEnd={2}>
  28. {t("Product")}
  29. </Typography>
  30. {/* <Button
  31. variant="contained"
  32. startIcon={<Add />}
  33. LinkComponent={Link}
  34. href="product/create"
  35. >
  36. {t("Create product")}
  37. </Button> */}
  38. </Stack>
  39. <I18nProvider namespaces={["items","navigation","common"]}>
  40. <Suspense fallback={<ItemsSearch.Loading />}>
  41. <ItemsSearch />
  42. </Suspense>
  43. </I18nProvider>
  44. </>
  45. );
  46. };
  47. export default productSetting;