PluginProbe
Extendify / 0.3.1
Extendify v0.3.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 / components / notices / PromotionNotice.js

PromotionNotice.js in Extendify 0.3.1, at src/components/notices/PromotionNotice.js

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