PluginProbe
Extendify / 0.11.1
Extendify v0.11.1
3.2.1 3.2.0 3.1.6 3.1.5 3.1.4 3.1.3 3.1.2 3.1.1 3.1.0 3.0.6 3.0.5 3.0.4 trunk 0.1.0 0.10.0 0.10.1 0.10.2 0.11.0 0.11.1 0.2.0 0.3.0 0.3.1 0.4.0 0.5.0 0.6.0 All 127 releases
extendify / src / Library / components / notices / PromotionNotice.js

PromotionNotice.js in Extendify 0.11.1, at src/Library/components/notices/PromotionNotice.js

28 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 import { Button } from '@wordpress/components'
2 import { General } from '../../api/General'
3
4 export default function PromotionNotice({ promotionData }) {
5 return (
6 <>
7 <span className="text-black">{promotionData?.text ?? ''}</span>
8 <span className="px-2 opacity-50" aria-hidden="true">
9 &#124;
10 </span>
11 <div className="flex items-center justify-center space-x-2">
12 {promotionData?.url && (
13 <Button
14 variant="link"
15 className="h-auto p-0 text-black underline hover:no-underline"
16 href={`${promotionData.url}&utm_source=${window.extendifyData.sdk_partner}`}
17 onClick={async () =>
18 await General.ping('promotion-notice-click')
19 }
20 target="_blank">
21 {promotionData?.button_text}
22 </Button>
23 )}
24 </div>
25 </>
26 )
27 }
28