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.
 
 

28 lines
517 B

  1. import React from "react";
  2. import GeneralLoading from "../General/GeneralLoading"
  3. import { fetchDoList } from "@/app/api/do";
  4. interface SubComponents {
  5. Loading: typeof GeneralLoading;
  6. }
  7. interface Props {
  8. id: string;
  9. }
  10. const DoSaveWrapper: React.FC<Props> & SubComponents = async ({
  11. id
  12. }) => {
  13. const [
  14. dos
  15. ] = await Promise.all([
  16. fetchDoList()
  17. ]);
  18. // return <DoSearch dos={dos}/>
  19. return <></>
  20. }
  21. DoSaveWrapper.Loading = GeneralLoading;
  22. export default DoSaveWrapper;