/** @format */ /** * External dependencies */ import { __ } from '@wordpress/i18n'; import { Button, CheckboxControl, FormToggle } from '@wordpress/components'; import { Component, Fragment } from '@wordpress/element'; import interpolateComponents from 'interpolate-components'; /** * Internal depdencies */ import { Card, H, Link } from '@woocommerce/components'; import ProfileWizardHeader from '../../header'; import SecurityIcon from './images/security'; import SalesTaxIcon from './images/local_atm'; import SpeedIcon from './images/flash_on'; import MobileAppIcon from './images/phone_android'; import './style.scss'; const benefits = [ { title: __( 'Security', 'woocommerce-admin' ), icon: , description: __( 'Jetpack automatically blocks brute force attacks to protect your store from unauthorized access.', 'woocommerce-admin' ), }, { title: __( 'Sales Tax', 'woocommerce-admin' ), icon: , description: __( 'With WooCommerce Services we ensure that the correct rate of tax is charged on all of your orders.', 'woocommerce-admin' ), }, { title: __( 'Speed', 'woocommerce-admin' ), icon: , description: __( 'Cache your images and static files on our own powerful global network of servers and speed up your site.', 'woocommerce-admin' ), }, { title: __( 'Mobile App', 'woocommerce-admin' ), icon: , description: __( 'Your store in your pocket. Manage orders, receive sales notifications, and more. Only with a Jetpack connection.', 'woocommerce-admin' ), }, ]; export default class Start extends Component { constructor() { super( ...arguments ); this.state = { trackingChecked: true, }; this.onTrackingChange = this.onTrackingChange.bind( this ); } skipWizard() { // @todo This should close the wizard and set the `skipped` property to true via the API. } startWizard() { // @todo This should go to the next step. } onTrackingChange() { this.setState( { trackingChecked: ! this.state.trackingChecked, } ); } renderBenefit( benefit ) { const { description, icon, title } = benefit; return (
{ icon }
{ title }

{ description }

); } render() { const { trackingChecked } = this.state; const trackingLabel = interpolateComponents( { mixedString: __( 'Help improve WooCommerce with usage tracking. {{link}}Learn More.{{/link}}', 'woocommerce-admin' ), components: { link: ( ), }, } ); return (
{ __( 'Start setting up your WooCommerce store', 'woocommerce-admin' ) }

{ interpolateComponents( { mixedString: __( 'Simplify and enhance the setup of your store with features and benefits offered by ' + '{{strong}}Jetpack & WooCommerce Services{{/strong}}.', 'woocommerce-admin' ), components: { strong: , }, } ) }

{ benefits.map( benefit => this.renderBenefit( benefit ) ) }

{ __( 'Proceed without Jetpack or WooCommerce Services', 'woocommerce-admin' ) }

); } }