| 1 |
import { Icon } from '@wordpress/components' |
| 2 |
import { __ } from '@wordpress/i18n' |
| 3 |
import SplitModal from './SplitModal' |
| 4 |
import { growthArrow, brandLogo } from '../icons' |
| 5 |
import { useGlobalStore } from '../../state/GlobalState' |
| 6 |
import Primary from '../buttons/Primary' |
| 7 |
|
| 8 |
export const ProModal = () => ( |
| 9 |
<SplitModal |
| 10 |
isOpen={true} |
| 11 |
invertedButtonColor={true} |
| 12 |
onClose={() => useGlobalStore.setState({ currentModal: null })}> |
| 13 |
<div className="px-12"> |
| 14 |
<div className="flex space-x-2 items-center mb-10 text-extendify-black"> |
| 15 |
{brandLogo} |
| 16 |
</div> |
| 17 |
<h3 className="text-xl"> |
| 18 |
{__( |
| 19 |
'Get unlimited access to all our Pro patterns & layouts', |
| 20 |
'extendify', |
| 21 |
)} |
| 22 |
</h3> |
| 23 |
<p className="text-sm text-black"> |
| 24 |
{__( |
| 25 |
'Upgrade to Extendify Pro and use all the patterns and layouts you’d like, including our exclusive Pro catalog.', |
| 26 |
'extendify', |
| 27 |
)} |
| 28 |
</p> |
| 29 |
<div> |
| 30 |
<Primary |
| 31 |
tagName="a" |
| 32 |
target="_blank" |
| 33 |
className="w-48 mt-10 py-3" |
| 34 |
href={`https://extendify.com/pricing/?utm_source=${window.extendifyData.sdk_partner}&utm_medium=library&utm_campaign=pro-modal&utm_content=upgrade-now`} |
| 35 |
rel="noreferrer"> |
| 36 |
{__('Upgrade Now', 'extendify')} |
| 37 |
<Icon icon={growthArrow} size={24} className="-ml-1 mr-1" /> |
| 38 |
</Primary> |
| 39 |
</div> |
| 40 |
</div> |
| 41 |
<div className="w-full bg-white flex justify-end"> |
| 42 |
<img |
| 43 |
alt={__('Upgrade Now', 'extendify')} |
| 44 |
className="max-w-full" |
| 45 |
src={window.extendifyData.asset_path + '/pro-image.png'} |
| 46 |
/> |
| 47 |
</div> |
| 48 |
</SplitModal> |
| 49 |
) |
| 50 |
|