/** @format */ /** * External dependencies */ import { Component } from '@wordpress/element'; import { compose } from '@wordpress/compose'; import classNames from 'classnames'; /** * Internal depdencies */ import withSelect from 'wc-api/with-select'; class HeaderLogo extends Component { render() { const { isJetpackConnected } = this.props; const ariaLabel = ! isJetpackConnected ? 'Jetpack + WooCommerce' : 'WooCommerce'; const classes = classNames( 'woocommerce-profile-wizard__header-logo', { 'woocommerce-profile-wizard__header-logo-with-jetpack': ! isJetpackConnected, } ); return ( { ! isJetpackConnected && ( ) } { ! isJetpackConnected && ( ) } ); } } export default compose( withSelect( select => { const { isJetpackConnected } = select( 'wc-api' ); return { isJetpackConnected: isJetpackConnected(), }; } ) )( HeaderLogo );