-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathindex.js
58 lines (55 loc) · 1.34 KB
/
index.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
/**
* External dependencies
*/
import { __ } from '@wordpress/i18n';
import { Notice } from '@wordpress/components';
/**
* Internal dependencies
*/
import documentationLinkProps from '../../setup-guide/app/helpers/documentation-link-props';
/**
* Renders a notice for Beta versions
*
* @fires wcadmin_pfw_get_started_notice_link_click `{ context: 'pinterest-landing', link_id: 'prelaunch-notice' }`
* @return {JSX.Element} The rendered component
*/
const PrelaunchNotice = () => {
return (
<Notice
status="warning"
isDismissible={ false }
className="pinterest-for-woocommerce-prelaunch-notice"
>
<h3>
{ __(
'Pinterest for WooCommerce is a limited beta.',
'pinterest-for-woocommerce'
) }
</h3>
<p>
{ __(
'The integration is only available to approved stores participating in the beta program.',
'pinterest-for-woocommerce'
) }
</p>
<p>
<a
{ ...documentationLinkProps( {
href: wcSettings.pinterest_for_woocommerce
.pinterestLinks.preLaunchNotice,
eventName: 'pfw_get_started_notice_link_click',
linkId: 'prelaunch-notice',
context: 'pinterest-landing',
rel: 'noreferrer',
} ) }
>
{ __(
'Click here for more information.',
'pinterest-for-woocommerce'
) }
</a>
</p>
</Notice>
);
};
export default PrelaunchNotice;