bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/app/AppContainer.jsx

35 lines
771 B
React
Raw Normal View History

2016-04-29 03:02:51 +08:00
import React, { Component, PropTypes } from 'react';
import { createContainer } from 'meteor/react-meteor-data';
import App from './App.jsx';
import NavBarContainer from '../nav-bar/NavBarContainer.jsx';
import ActionsBarContainer from '../actions-bar/ActionsBarContainer.jsx';
2016-05-03 06:42:54 +08:00
import MediaContainer from '../media/MediaContainer.jsx';
2016-04-29 03:02:51 +08:00
const defaultProps = {
navbar: <NavBarContainer/>,
actionsbar: <ActionsBarContainer/>,
2016-05-03 06:42:54 +08:00
media: <MediaContainer/>,
2016-04-29 03:02:51 +08:00
};
class AppContainer extends Component {
constructor(props) {
super(props);
}
render() {
return (
<App {...this.props}>
{this.props.children}
</App>
);
}
}
AppContainer.defaultProps = defaultProps;
export default createContainer(() => {
return {};
}, AppContainer);