bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/sidebar-content/container.jsx

24 lines
647 B
React
Raw Normal View History

2021-05-18 04:25:07 +08:00
import React from 'react';
import SidebarContent from './component';
import NewLayoutContext from '../layout/context/context';
const SidebarContentContainer = (props) => {
const { newLayoutContextState, newLayoutContextDispatch } = props;
const {
output, sidebarContentPanel,
} = newLayoutContextState;
const { sidebarContent } = output;
if (sidebarContent.display === false) return null;
return (
<SidebarContent
{...sidebarContent}
contextDispatch={newLayoutContextDispatch}
sidebarContentPanel={sidebarContentPanel}
/>
);
};
export default NewLayoutContext.withConsumer(SidebarContentContainer);