| 1 |
/* eslint-disable no-undef */ |
| 2 |
/* eslint-disable camelcase */ |
| 3 |
/** |
| 4 |
* WordPress dependencies |
| 5 |
*/ |
| 6 |
import { __ } from '@wordpress/i18n'; |
| 7 |
|
| 8 |
const ProLock = ({ children }) => { |
| 9 |
return ( |
| 10 |
<> |
| 11 |
{gutslider_preview?.is_pro === '' ? ( |
| 12 |
<div className="gkits-pro-lock-container"> |
| 13 |
{children} |
| 14 |
<span className="pro-badge">{__('Pro', 'slider-blocks')}</span> |
| 15 |
</div> |
| 16 |
) : ( |
| 17 |
<>{children}</> |
| 18 |
)} |
| 19 |
</> |
| 20 |
); |
| 21 |
}; |
| 22 |
|
| 23 |
export default ProLock; |
| 24 |
|