403Webshell
Server IP : 52.25.153.185  /  Your IP : 216.73.216.194
Web Server : Apache
System : Linux ip-172-26-6-158 5.10.0-45-cloud-amd64 #1 SMP Debian 5.10.259-1 (2026-07-02) x86_64
User : daemon ( 1)
PHP Version : 8.1.10
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : OFF
Directory :  /bitnami/wordpress/wp-content/plugins/code-snippets/js/components/common/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /bitnami/wordpress/wp-content/plugins/code-snippets/js/components/common/UpsellDialog.tsx
import { createInterpolateElement } from '@wordpress/element'
import React from 'react'
import { __ } from '@wordpress/i18n'
import { Modal } from '@wordpress/components'
import type { Dispatch, SetStateAction } from 'react'

export interface UpsellDialogProps {
	isOpen: boolean
	setIsOpen: Dispatch<SetStateAction<boolean>>
}

export const UpsellDialog: React.FC<UpsellDialogProps> = ({ isOpen, setIsOpen }) =>
	isOpen
		? <Modal
			aria-labelledby="code-snippets-upsell-dialog-title"
			className="code-snippets-upsell code-snippets-upsell-dialog"
			onRequestClose={() => {
				setIsOpen(false)
			}}
		>
			<img
				src={`${window.CODE_SNIPPETS?.urls.plugin}/assets/icon.svg`}
				alt={__('Code Snippets logo', 'code-snippets')}
			/>

			<UpsellContent />
		</Modal>
		: null

const UpsellContent = () =>
	<>
		<h1 id="code-snippets-upsell-dialog-title">
			{createInterpolateElement(
				__('Unlock all cloud sync features and many more, with <span>Code Snippets Pro</span>', 'code-snippets'),
				{ span: <span /> }
			)}
		</h1>

		<p>
			{createInterpolateElement(
				__('With Code Snippets Pro you can connect your WordPress sites to the code snippets cloud platform and be able to <strong>backup, synchronise, collaborate, and deploy</strong> your snippets from one central location.', 'code-snippets'),
				{ strong: <strong /> }
			)}
		</p>

		<a
			href="https://codesnippets.pro/pricing/"
			className="button button-primary button-large"
			rel="noreferrer" target="_blank"
		>
			{__('Explore Code Snippets Pro', 'code-snippets')}
		</a>

		<p>{__("Here's what else you get with Pro:", 'code-snippets')}</p>
		<ul>
			<li>{__('Create, explain and verify snippets with AI', 'code-snippets')}</li>
			<li>{__('Control when snippets run with Conditions', 'code-snippets')}</li>
			<li>{__('CSS stylesheet snippets', 'code-snippets')}</li>
			<li>{__('Minified JavaScript snippets', 'code-snippets')}</li>
			<li>{__('Editor blocks and Elementor widgets', 'code-snippets')}</li>
			<li>{__('Cloud sync and backup', 'code-snippets')}</li>
			<li>{__('Cloud share and deploy', 'code-snippets')}</li>
			<li>{__('Cloud bundles and teams', 'code-snippets')}</li>
			<li>{__('WP-CLI commands', 'code-snippets')}</li>
			<li>{__('And much more!', 'code-snippets')}</li>
		</ul>
	</>

export const UpsellPage = () =>
	<div className="code-snippets-upsell code-snippets-upsell-page">
		<UpsellContent />
	</div>

Youez - 2016 - github.com/yon3zu
LinuXploit