var React = require( 'react' ), SiteStore = require( 'stores/site-store' ), Button = require( '@automattic/dops-components/client/components/button' ), WelcomeSection = require( '../page/container' ), SetupProgressActions = require( 'actions/setup-progress-actions' ); function getSiteLayoutState() { return { site_title: SiteStore.getTitle(), layout: SiteStore.getLayout() }; } var LayoutStep = React.createClass({ componentDidMount: function() { SiteStore.addChangeListener( this._onChange ); }, componentWillUnmount: function() { SiteStore.removeChangeListener( this._onChange ); }, _onChange: function() { this.setState( getSiteLayoutState() ); }, getInitialState: function() { return getSiteLayoutState(); }, handleIsBlog: function(){ SetupProgressActions.confirmHomepageStep(); }, handleNotBlog: function(){ SetupProgressActions.submitLayoutStep( 'website' ); }, render: function() { return (

Let's launch { this.state.site_title }

Are you going to update your site with news or blog posts?

); } }); module.exports = LayoutStep;