2021-10-26 08:40:35 +00:00
|
|
|
/**
|
|
|
|
* External dependencies
|
|
|
|
*/
|
|
|
|
import { Button } from '@wordpress/components';
|
|
|
|
import { __ } from '@wordpress/i18n';
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Internal dependencies
|
|
|
|
*/
|
|
|
|
import TimerImage from './timer.svg';
|
|
|
|
import GetMoreSales from './illustrations/get-more-sales.js';
|
|
|
|
|
|
|
|
const MarketingHeader = ( { task, goToTask } ) => {
|
|
|
|
return (
|
|
|
|
<div className="woocommerce-task-header__contents-container">
|
2021-10-28 08:02:56 +00:00
|
|
|
<GetMoreSales class="svg-background" />
|
2021-10-26 08:40:35 +00:00
|
|
|
<div className="woocommerce-task-header__contents">
|
|
|
|
<h1>{ __( 'Get more sales', 'woocommerce-admin' ) }</h1>
|
|
|
|
<p>
|
|
|
|
{ __(
|
|
|
|
'Add tools to grow your store such as email, social, and in-person selling',
|
|
|
|
'woocommerce-admin'
|
|
|
|
) }
|
|
|
|
</p>
|
|
|
|
<Button
|
|
|
|
isSecondary={ task.isComplete }
|
|
|
|
isPrimary={ ! task.isComplete }
|
|
|
|
onClick={ goToTask }
|
|
|
|
>
|
|
|
|
{ __( 'Add selling tools', 'woocommerce-admin' ) }
|
|
|
|
</Button>
|
|
|
|
<p className="woocommerce-task-header__timer">
|
|
|
|
<img src={ TimerImage } alt="Timer" />{ ' ' }
|
|
|
|
<span>{ task.time }</span>
|
|
|
|
</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
);
|
2021-10-20 16:16:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
export default MarketingHeader;
|