import React, { Component, PropTypes } from 'react'; import { createContainer } from 'meteor/react-meteor-data'; import App from './component'; import { pollExists } from './service'; import NavBarContainer from '../nav-bar/container'; import ActionsBarContainer from '../actions-bar/container'; import MediaContainer from '../media/container'; import PollingContainer from '../polling/container'; import SettingsModal from '../modals/settings/SettingsModal'; const defaultProps = { navbar: , actionsbar: , media: , settings: , }; class AppContainer extends Component { constructor(props) { super(props); this.state = { meetingID: localStorage.getItem('meetingID'), userID: localStorage.getItem('userID'), authToken: localStorage.getItem('authToken'), }; } render() { return ( {this.props.children} ); } } AppContainer.defaultProps = defaultProps; const actionControlsToShow = () => { if (pollExists()) { return ; } else { return ; } }; export default createContainer(() => { const data = { actionsbar: actionControlsToShow() }; return data; }, AppContainer);