bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/sidebar-content/container.jsx
2021-08-05 08:03:24 -03:00

26 lines
731 B
JavaScript

import React from 'react';
import SidebarContent from './component';
import { LayoutContextFunc } from '../layout/context';
const SidebarContentContainer = (props) => {
const { layoutContextState, layoutContextDispatch } = props;
const {
output, input,
} = layoutContextState;
const { sidebarContent: sidebarContentInput } = input;
const { sidebarContentPanel } = sidebarContentInput;
const { sidebarContent } = output;
if (sidebarContent.display === false) return null;
return (
<SidebarContent
{...sidebarContent}
contextDispatch={layoutContextDispatch}
sidebarContentPanel={sidebarContentPanel}
/>
);
};
export default LayoutContextFunc.withConsumer(SidebarContentContainer);