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.
 
 

26 lines
647 B

  1. import React from "react";
  2. import CreateTeam from "./CreateTeam";
  3. import CreateTeamLoading from "./CreateTeamLoading";
  4. // import { fetchTeam, fetchTeamLeads } from "@/app/api/team";
  5. import { useSearchParams } from "next/navigation";
  6. import { fetchStaff, fetchStaffWithoutTeam } from "@/app/api/staff";
  7. interface SubComponents {
  8. Loading: typeof CreateTeamLoading;
  9. }
  10. const CreateTeamWrapper: React.FC & SubComponents = async () => {
  11. const [
  12. staff,
  13. ] = await Promise.all([
  14. fetchStaffWithoutTeam(),
  15. ]);
  16. return <CreateTeam allstaff={staff}/>;
  17. };
  18. CreateTeamWrapper.Loading = CreateTeamLoading;
  19. export default CreateTeamWrapper;