import { Edit } from "@mui/icons-material";
import { useSearchParams } from "next/navigation";
// import EditStaff from "@/components/EditStaff";
import { Suspense } from "react";
import { I18nProvider, getServerI18n } from "@/i18n";
// import EditStaffWrapper from "@/components/EditStaff/EditStaffWrapper";
import { Metadata } from "next";
import EditTeam from "@/components/EditTeam";
import { searchParamsProps } from "@/app/utils/fetchUtil";


const EditTeamPage: React.FC<searchParamsProps> = async ({
  searchParams,
}) => {
  const { t } = await getServerI18n("team");
  return (
    <>
      <I18nProvider namespaces={["team", "common"]}>
        <Suspense fallback={<EditTeam.Loading />}>
          <EditTeam id={parseInt(searchParams.id as string)}/>
        </Suspense>
      </I18nProvider>
      {/* <EditStaff /> */}
    </>
  );
};

export default EditTeamPage;
