1 import { useContext } from 'react';
3 import ModalsContainer from './Container';
4 import ModalsChildrenContext from './childrenContext';
5 import ModalsContext from './modalsContext';
7 const ModalsChildren = () => {
8 const manager = useContext(ModalsContext);
9 const children = useContext(ModalsChildrenContext);
11 return <ModalsContainer removeModal={manager.removeModal} hideModal={manager.hideModal} modals={children} />;
14 export default ModalsChildren;