FPSMS-frontend
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.
 
 
 

25 lines
808 B

  1. import { Edit } from "@mui/icons-material";
  2. import { Metadata } from "next";
  3. import { I18nProvider, getServerI18n } from "@/i18n";
  4. import EditUser from "@/components/EditUser";
  5. import { Typography } from "@mui/material";
  6. import { Suspense } from "react";
  7. import { preloadUser } from "@/app/api/user";
  8. import { searchParamsProps } from "@/app/utils/fetchUtil";
  9. const User: React.FC<searchParamsProps> = async ({ searchParams }) => {
  10. const { t } = await getServerI18n("user");
  11. preloadUser();
  12. return (
  13. <>
  14. <Typography variant="h4">{t("Edit User")}</Typography>
  15. <I18nProvider namespaces={["user", "common"]}>
  16. <Suspense fallback={<EditUser.Loading />}>
  17. <EditUser searchParams={searchParams} />
  18. </Suspense>
  19. </I18nProvider>
  20. </>
  21. );
  22. };
  23. export default User;