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.
 
 

20 lines
488 B

  1. import React from "react";
  2. import CreateStaff from "./CreateStaff";
  3. import CreateStaffLoading from "./CreateStaffLoading";
  4. import { fetchStaff, fetchTeamLeads } from "@/app/api/staff";
  5. import { useSearchParams } from "next/navigation";
  6. interface SubComponents {
  7. Loading: typeof CreateStaffLoading;
  8. }
  9. const CreateStaffWrapper: React.FC & SubComponents = async () => {
  10. return <CreateStaff/>;
  11. };
  12. CreateStaffWrapper.Loading = CreateStaffLoading;
  13. export default CreateStaffWrapper;