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.
|
- import { SearchParams } from "@/app/utils/fetchUtil";
- import { getServerI18n } from "@/i18n";
- import Add from "@mui/icons-material/Add";
- import Button from "@mui/material/Button";
- import Stack from "@mui/material/Stack";
- import Typography from "@mui/material/Typography";
- import { Metadata } from "next";
- import Link from "next/link";
-
- export const metadata: Metadata = {
- title: "Material Setting",
- };
-
- type Props = {} & SearchParams;
-
- const material: React.FC<Props> = async ({ searchParams }) => {
- const { t } = await getServerI18n("material");
- console.log(searchParams);
- return (
- <>
- <Stack
- direction="row"
- justifyContent="space-between"
- flexWrap="wrap"
- rowGap={2}
- >
- <Typography variant="h4" marginInlineEnd={2}>
- {t("Material")}
- </Typography>
- <Button
- variant="contained"
- startIcon={<Add />}
- LinkComponent={Link}
- href="/material/create"
- >
- {t("Create Claim")}
- </Button>
- </Stack>
- {/* <Suspense fallback={<MaterialSearch.Loading />}>
- <MaterialSearch />
- </Suspense> */}
- </>
- );
- };
-
- export default material;
|