Vulcan/packages/nova-base-components/lib/common/Layout.jsx

39 lines
721 B
React
Raw Normal View History

import React, { PropTypes, Component } from 'react';
2016-03-30 10:52:40 +09:00
import Core from "meteor/nova:core";
const FlashContainer = Core.FlashContainer;
class Layout extends Component {
2016-02-16 15:08:30 +09:00
render() {
({Header, Footer, FlashMessages, Newsletter, HeadTags, UsersProfileCheck} = Telescope.components);
2016-02-16 15:08:30 +09:00
return (
<div className="wrapper" id="wrapper">
2016-03-25 10:45:28 +09:00
<HeadTags />
<UsersProfileCheck {...this.props} />
<Header {...this.props}/>
<div className="main">
2016-03-25 10:45:28 +09:00
<FlashContainer component={FlashMessages}/>
2016-03-25 11:30:01 +09:00
<Newsletter />
2016-03-25 10:45:28 +09:00
{this.props.children}
2016-03-25 10:45:28 +09:00
</div>
<Footer {...this.props}/>
2016-02-19 09:54:13 +09:00
</div>
)
}
2016-02-16 15:08:30 +09:00
}
module.exports = Layout;