Remove payments API routing initialization
[ProtonMail-WebClient.git] / packages / components / containers / modals / Children.tsx
blob00a680cb9ba822ff2165f47c399fc2535caabee0
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;