bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/sidebar-content/container.jsx
2021-09-10 17:48:52 -03:00

23 lines
730 B
JavaScript

import React from 'react';
import SidebarContent from './component';
import { layoutSelectInput, layoutSelectOutput, layoutDispatch } from '../layout/context';
const SidebarContentContainer = () => {
const sidebarContentInput = layoutSelectInput((i) => i.sidebarContent);
const sidebarContentOutput = layoutSelectOutput((i) => i.sidebarContent);
const layoutContextDispatch = layoutDispatch();
const { sidebarContentPanel } = sidebarContentInput;
if (sidebarContentOutput.display === false) return null;
return (
<SidebarContent
{...sidebarContentOutput}
contextDispatch={layoutContextDispatch}
sidebarContentPanel={sidebarContentPanel}
/>
);
};
export default SidebarContentContainer;