import { __ } from "@wordpress/i18n"; import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { faCircleInfo } from "@fortawesome/free-solid-svg-icons"; /** * Menu block control component. * * This control will be used for both enabling/disabling blocks and showing info about them. * * @class * * @param {Object} props component properties * @param {string} props.title block title * @param {string} props.name registry id of block * @param {HTMLElement} props.iconElement block icon element * @param {boolean} props.isPro block belongs to pro version * @param {boolean} props.isProPlugin plugin pro status * @param {Function} props.showUpsell set target block type for modal interface * @param {string | null} [props.demoUrl=null] demo url for block */ function BlockControlCard({ title, name, iconElement, isPro, isProPlugin, showUpsell, demoUrl = null, }) { return (