import { __ } from "@wordpress/i18n"; import "./editor.scss"; import { useBlockProps, RichText, InspectorControls, BlockControls, __experimentalLinkControl as LinkControl, } from "@wordpress/block-editor"; import { PanelBody, TextControl, ToggleControl } from "@wordpress/components"; export default function Edit({ attributes, setAttributes }) { const { ctaTextLabel, ctaLink } = attributes; function onChangeCtaTextLabel(ctaTextLabel) { setAttributes({ ctaTextLabel }); } function onChangeCtaLink(ctaLink) { console.log(ctaLink); setAttributes({ ctaLink }); } return ( <> <> ); }