import { __ } from "@wordpress/i18n";
import { useSelect } from "@wordpress/data";
import {
useBlockProps,
RichText,
InspectorControls,
__experimentalLinkControl as LinkControl,
} from "@wordpress/block-editor";
import arrow from "../img/arrow-right-circle.svg";
import "./editor.scss";
import { PanelBody } from "@wordpress/components";
export default function Edit({ attributes, setAttributes, ...props }) {
let { chapterLinkTitle, chapterLinkDescription, chapterLinkRelatedPost } =
attributes;
function onChangeChapterLinkTitle(chapterLinkTitle) {
setAttributes({ chapterLinkTitle });
}
function onChangeChapterLinkDescription(chapterLinkDescription) {
setAttributes({ chapterLinkDescription });
}
function onRelatedPostChange(chapterLinkRelatedPost) {
setAttributes({ chapterLinkRelatedPost });
}
return (
<>