var React = require('react'), SkipButton = require('../skip-button'), SiteStore = require('stores/site-store'), SiteActions = require('actions/site-actions'), Paths = require('../../constants/jetpack-onboarding-paths'), ContentBox = require('../page/section'), WelcomeSection = require('../page/container'), SetupProgressActions = require('actions/setup-progress-actions'), SpinnerStore = require('stores/spinner-store'), Button = require('@automattic/dops-components/client/components/button'); function getJetpackState() { return { site_title: SiteStore.getTitle(), jetpackConfigured: SiteStore.getJetpackConfigured(), jumpstartEnabled: SiteStore.getJetpackJumpstartEnabled(), modulesEnabled: SiteStore.getActiveModuleSlugs(), settingsUrl: SiteStore.getJetpackSettingsUrl() }; } var JetpackJumpstart = React.createClass({ componentDidMount: function() { SiteStore.addChangeListener(this._onChange); }, componentWillUnmount: function() { SiteStore.removeChangeListener(this._onChange); }, _onChange: function() { this.setState(getJetpackState()); }, getInitialState: function() { var state = getJetpackState(); state.showMoreModules = false; state.jetpackConnecting = false; return state; }, handleJetpackConnect: function (e) { e.preventDefault(); this.setState( { jetpackConnecting: true } ); SiteActions .configureJetpack( Paths.REVIEW_STEP_SLUG ) .always(function() { this.setState( { jetpackConnecting: false } ); }.bind( this ) ); }, handleNext: function (e) { e.preventDefault(); SetupProgressActions.completeAndNextStep(Paths.JETPACK_MODULES_STEP_SLUG); }, render: function() { return (

Let's launch {this.state.site_title}

Connect your Jetpack profile to improve security, track stats, and grow traffic

{ this.state.jetpackConfigured ?

Congratulations! You've enabled Jetpack and unlocked dozens of powerful features.

Check out the settings page…

:
{ !this.state.jetpackConnecting && }
}

Grow and Track Your Community

Jetpack provides Stats, insights and visitor information.

Use Jetpack tools like Publicize, Sharing, Subscribing and Related Posts to increase traffic, and onsite engagement.

Increase Security and Site Speed

Gain peace of mind with Protect, the tool that has blocked billions of login attacks on millions of sites.

Photon utilizes the state-of-the-art WordPress.com content delivery network to load your gorgeous images super fast optimized for any device, and it’s completely free.

); } }); module.exports = JetpackJumpstart;