import React from 'react'
import AssignRole from './AssignRole'

const ProjectModal = ({modalConfig,closeModal}) => {
   
  return (
    <div
    className="modal fade"
    id="project-modal"
    tabindex="-1"
    aria-hidden="true"
    role="dialog"  
   >
   <div className="modal-dialog modal-lg modal-simple">
  <div className="modal-content">
  <div className="modal-body">
    <button
      type="button"
      className="btn-close"
      data-bs-dismiss="modal"
      aria-label="Close"
      onClick={closeModal}
    ></button>
    <div className="text-center mb-2"></div>
     
     {/* Modal Component */}
     
            {modalConfig?.type === "assignRole" && <AssignRole assignData={modalConfig?.data} onClose={closeModal} />}
            
   </div>
</div>
</div>
</div>
  )
}

export default ProjectModal