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.
|
- 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";
- import { Suspense } from "react";
-
- export const metadata: Metadata = {
- title: "User",
- };
-
- const TaskTemplates: React.FC = async () => {
- const { t } = await getServerI18n("common");
-
- return (
- <>
- <Stack
- direction="row"
- justifyContent="space-between"
- flexWrap="wrap"
- rowGap={2}
- >
- <Typography variant="h4" marginInlineEnd={2}>
- {t("User")}
- </Typography>
- <Button
- variant="contained"
- startIcon={<Add />}
- LinkComponent={Link}
- href="/tasks/create"
- >
- {t("Create Template")}
- </Button>
- </Stack>
- {/* <Suspense fallback={<TaskTemplateSearch.Loading />}>
- <TaskTemplateSearch />
- </Suspense> */}
- </>
- );
- };
-
- export default TaskTemplates;
|