-
Notifications
You must be signed in to change notification settings - Fork 21
/
free-ad-credit.js
44 lines (41 loc) · 1.14 KB
/
free-ad-credit.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
/**
* External dependencies
*/
import { __ } from '@wordpress/i18n';
import GridiconGift from 'gridicons/dist/gift';
import { createInterpolateElement } from '@wordpress/element';
/**
* Internal dependencies
*/
import AppDocumentationLink from '~/components/app-documentation-link';
/**
* Render the Free Ads Credit inside the Paid Features component.
*
* @fires gla_documentation_link_click with `{ context: 'dashboard', link_id: 'free-ad-credit-terms', href: 'https://www.google.com/ads/coupons/terms/' }`
* @return {JSX.Element} Free Ads Credit component.
*/
const FreeAdCredit = () => {
return (
<div className="gla-free-ad-credit-claim">
<GridiconGift />
<div>
{ createInterpolateElement(
__(
'Claim $500 in ads credit when you spend your first $500 with Google Ads. <termLink>Terms and conditions apply</termLink>.',
'google-listings-and-ads'
),
{
termLink: (
<AppDocumentationLink
context="dashboard"
linkId="free-ad-credit-terms"
href="https://www.google.com/ads/coupons/terms/"
/>
),
}
) }
</div>
</div>
);
};
export default FreeAdCredit;