|
Server IP : 168.119.101.163 / Your IP : 216.73.217.54 Web Server : Apache/2 System : Linux web02.webzuiver.nl 4.18.0-553.126.2.lve.el8.x86_64 #1 SMP Thu May 28 14:12:30 UTC 2026 x86_64 User : equine ( 1027) PHP Version : 8.1.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : OFF | Perl : OFF | Python : OFF Directory (0755) : /home/equine/public_html/wp-content/plugins/code-snippets/js/components/common/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
import { ExternalLink } from '@wordpress/components'
import { createInterpolateElement } from '@wordpress/element'
import { __ } from '@wordpress/i18n'
import React, { useState } from 'react'
import { isLicensed } from '../../utils/screen'
import { Button } from './Button'
export const UpsellBanner = () => {
const [isDismissed, setIsDismissed] = useState(false)
return isDismissed || isLicensed() || window.CODE_SNIPPETS_EDIT?.hideUpsell
? null
: <div className="code-snippets-upsell-banner">
<img
src={`${window.CODE_SNIPPETS?.urls.plugin}/assets/icon.svg`}
alt={__('Code Snippets logo', 'code-snippets')}
height="34"
/>
<p>
{createInterpolateElement(
__('Unlock <strong>cloud sync, snippet conditions, AI features</strong> and much more with Code Snippets Pro.', 'code-snippets'),
{ strong: <strong /> }
)}
</p>
<ExternalLink
className="button button-primary button-large"
href="https://codesnippets.pro/pricing/"
>
{__('Get Started', 'code-snippets')}
</ExternalLink>
<Button small link onClick={() => setIsDismissed(true)}>
<span className="dashicons dashicons-no-alt"></span>
</Button>
</div>
}