No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 

36 líneas
1.1 KiB

  1. import { Edit } from "@mui/icons-material";
  2. import { useSearchParams } from "next/navigation";
  3. // import EditStaff from "@/components/EditStaff";
  4. import { Suspense } from "react";
  5. import { I18nProvider, getServerI18n } from "@/i18n";
  6. // import EditStaffWrapper from "@/components/EditStaff/EditStaffWrapper";
  7. import { Metadata } from "next";
  8. import EditSkill from "@/components/EditSkill";
  9. import { Typography } from "@mui/material";
  10. import { fetchSkill } from "@/app/api/skill";
  11. export interface searchParamsProps {
  12. searchParams: { [key: string]: string | string[] | undefined };
  13. }
  14. const EditSkillPage: React.FC<searchParamsProps> = async ({
  15. searchParams,
  16. }) => {
  17. console.log(searchParams.id)
  18. const { t } = await getServerI18n("staff");
  19. return (
  20. <>
  21. <Typography variant="h4">{t("Edit Skill")}</Typography>
  22. <I18nProvider namespaces={["team", "common"]}>
  23. <Suspense fallback={<EditSkill.Loading />}>
  24. <EditSkill id={parseInt(searchParams.id as string)}/>
  25. </Suspense>
  26. </I18nProvider>
  27. </>
  28. );
  29. };
  30. export default EditSkillPage;