import { __ } from "@wordpress/i18n";
import { useBlockProps } from "@wordpress/block-editor";
import OptionsSelectControl from "./OptionsSelectControl";
import { useSelect } from "@wordpress/data";
import "./editor.scss";
export default function Edit({ attributes, setAttributes }) {
const { relatedPostId } = attributes;
const post = useSelect((select) =>
select("core").getEntityRecord("postType", "parcours", relatedPostId)
);
return (
<>