| 1 |
import { safeHTML } from '@wordpress/dom' |
| 2 |
import { useRef } from '@wordpress/element' |
| 3 |
import { __, sprintf } from '@wordpress/i18n' |
| 4 |
import { brandLogo } from '@library/components/icons' |
| 5 |
import { SplitModal } from './SplitModal' |
| 6 |
|
| 7 |
export const ProModal = () => { |
| 8 |
const initialFocus = useRef(null) |
| 9 |
return ( |
| 10 |
<SplitModal isOpen={true} invertedButtonColor={true} ref={initialFocus}> |
| 11 |
<div> |
| 12 |
<div className="mb-5 flex items-center space-x-2 text-extendify-black"> |
| 13 |
{brandLogo} |
| 14 |
</div> |
| 15 |
<h3 className="mt-0 text-xl"> |
| 16 |
{__('Pro Patterns and Layouts', 'extendify')} |
| 17 |
</h3> |
| 18 |
<p |
| 19 |
className="text-sm text-black" |
| 20 |
dangerouslySetInnerHTML={{ |
| 21 |
__html: safeHTML( |
| 22 |
sprintf( |
| 23 |
// translators: %s: The partners@extendify.com email address. |
| 24 |
__( |
| 25 |
"Access to our Pro catalog is available exclusively for customers of select hosting providers. If you're interested in full access, have your hosting provider reach out to %s.", |
| 26 |
'extendify', |
| 27 |
), |
| 28 |
'<a href="mailto:partners@extendify.com">partners@extendify.com</a>', |
| 29 |
), |
| 30 |
), |
| 31 |
}} |
| 32 |
/> |
| 33 |
</div> |
| 34 |
<div className="justify-endrounded-tr-sm flex w-full rounded-br-sm bg-black"> |
| 35 |
<img |
| 36 |
alt={__('Upgrade Now', 'extendify')} |
| 37 |
className="max-w-full rounded-tr-sm rounded-br-sm" |
| 38 |
src={ |
| 39 |
window.extendifyData.asset_path + |
| 40 |
'/modal-extendify-black.png' |
| 41 |
} |
| 42 |
/> |
| 43 |
</div> |
| 44 |
</SplitModal> |
| 45 |
) |
| 46 |
} |
| 47 |
|