import React, { useContext } from 'react'; import SidebarContent from './component'; import { layoutSelectInput, layoutSelectOutput, layoutDispatch } from '../layout/context'; import { UsersContext } from '../components-data/users-context/context'; import Auth from '/imports/ui/services/auth'; const SidebarContentContainer = () => { const sidebarContentInput = layoutSelectInput((i) => i.sidebarContent); const sidebarContentOutput = layoutSelectOutput((i) => i.sidebarContent); const layoutContextDispatch = layoutDispatch(); const { sidebarContentPanel } = sidebarContentInput; const usingUsersContext = useContext(UsersContext); const { users } = usingUsersContext; const amIPresenter = users[Auth.meetingID][Auth.userID].presenter; if (sidebarContentOutput.display === false) return null; return ( ); }; export default SidebarContentContainer;