FPSMS-frontend
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 

47 lignes
1.2 KiB

  1. import { SearchParams } from "@/app/utils/fetchUtil";
  2. import { getServerI18n } from "@/i18n";
  3. import Add from "@mui/icons-material/Add";
  4. import Button from "@mui/material/Button";
  5. import Stack from "@mui/material/Stack";
  6. import Typography from "@mui/material/Typography";
  7. import { Metadata } from "next";
  8. import Link from "next/link";
  9. export const metadata: Metadata = {
  10. title: "Material Setting",
  11. };
  12. type Props = {} & SearchParams;
  13. const material: React.FC<Props> = async ({ searchParams }) => {
  14. const { t } = await getServerI18n("material");
  15. console.log(searchParams);
  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("Material")}
  26. </Typography>
  27. <Button
  28. variant="contained"
  29. startIcon={<Add />}
  30. LinkComponent={Link}
  31. href="/material/create"
  32. >
  33. {t("Create Claim")}
  34. </Button>
  35. </Stack>
  36. {/* <Suspense fallback={<MaterialSearch.Loading />}>
  37. <MaterialSearch />
  38. </Suspense> */}
  39. </>
  40. );
  41. };
  42. export default material;