FPSMS-frontend
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 

28 lignes
694 B

  1. import React from "react";
  2. import GeneralLoading from "../General/GeneralLoading";
  3. import JoSearch from "./JoSearch";
  4. import { SearchJoResultRequest } from "@/app/api/jo/actions";
  5. import { fetchBomCombo } from "@/app/api/bom";
  6. interface SubComponents {
  7. Loading: typeof GeneralLoading;
  8. }
  9. const JoSearchWrapper: React.FC & SubComponents = async () => {
  10. const defaultInputs: SearchJoResultRequest = {
  11. code: "",
  12. name: "",
  13. }
  14. const [
  15. bomCombo
  16. ] = await Promise.all([
  17. fetchBomCombo()
  18. ])
  19. return <JoSearch defaultInputs={defaultInputs} bomCombo={bomCombo}/>
  20. }
  21. JoSearchWrapper.Loading = GeneralLoading;
  22. export default JoSearchWrapper;