-
Notifications
You must be signed in to change notification settings - Fork 10.7k
/
marketing.js
40 lines (37 loc) · 1.05 KB
/
marketing.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**
* External dependencies
*/
import { Button } from '@wordpress/components';
import { __ } from '@wordpress/i18n';
/**
* Internal dependencies
*/
import { WC_ASSET_URL } from '../../../../utils/admin-settings';
const MarketingHeader = ( { task, goToTask } ) => {
return (
<div className="woocommerce-task-header__contents-container">
<img
alt={ __( 'Marketing illustration', 'woocommerce' ) }
src={ WC_ASSET_URL + 'images/task_list/sales-illustration.svg' }
className="svg-background"
/>
<div className="woocommerce-task-header__contents">
<h1>{ __( 'Reach more customers', 'woocommerce' ) }</h1>
<p>
{ __(
'Start growing your business by showcasing your products on social media and Google, boost engagement with email marketing, and more!',
'woocommerce'
) }
</p>
<Button
isSecondary={ task.isComplete }
isPrimary={ ! task.isComplete }
onClick={ goToTask }
>
{ __( 'Grow your business', 'woocommerce' ) }
</Button>
</div>
</div>
);
};
export default MarketingHeader;