import { Modal } from "@wordpress/components"; import { __ } from "@wordpress/i18n"; import { priceLink } from "../../../blocks/shared/helpFn"; const ProModal = ({ isOpen, onClose, hasPostCarouselPosts = false, onViewMoreBlocks = null }) => { if (!isOpen) return null; return (
Pro Lock Icon
{__("Create Unlimited Saved Templates with Smart Post Pro", "post-carousel")}

The free version allows two saved templates. Upgrade to Smart Post Pro to create and reuse unlimited templates, saving time while building your site.

Note: You can use Smart Post blocks directly on any pages or posts for free.

{__("Upgrade to Pro", "post-carousel")} {hasPostCarouselPosts && onViewMoreBlocks && (

{__("Switch to Classic Editor?", "post-carousel")}{" "} setTimeout(() => window.location.reload(), 100)} > {__("Click here", "post-carousel")}

)}
); }; export default ProModal;