bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/context-providers/component.jsx
2021-01-19 14:06:32 -03:00

17 lines
491 B
JavaScript

import React from 'react';
import { ChatContextProvider } from '/imports/ui/components/components-data/chat-context/context';
import { UsersContextProvider } from '/imports/ui/components/components-data/users-context/context';
const providersList = [
ChatContextProvider,
UsersContextProvider,
];
const ContextProvidersComponent = props => providersList.reduce((acc, Component) => (
<Component>
{acc}
</Component>), props.children);
export default ContextProvidersComponent;