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.
 
 
 

21 lignes
537 B

  1. import CreateStaff from "./CreateMaterial";
  2. import CreateMaterialLoading from "./CreateMaterialLoading";
  3. interface SubComponents {
  4. Loading: typeof CreateMaterialLoading;
  5. }
  6. type CreateMaterialProps = {
  7. isEditMode?: false;
  8. };
  9. type Props = CreateMaterialProps
  10. const CreateMaterialWrapper: React.FC<Props> & SubComponents = async (props) => {
  11. console.log(props)
  12. return <CreateStaff isEditMode={Boolean(props.isEditMode)}/>
  13. }
  14. CreateMaterialWrapper.Loading = CreateMaterialLoading;
  15. export default CreateMaterialWrapper