{modalType &&
createPortal(
- {modalType === ModalTypes.Challenge && (
-
- )}
- {modalType === ModalTypes.LanguagePicker && }
- {modalType === ModalTypes.Fork && (
-
- )}
+ {React.createElement(modalRegistry[modalType], {
+ ...modalProps,
+ onClose: hideModal,
+ })}
,
document.body,
)}
{children}
-