28 lines
566 B
JavaScript
28 lines
566 B
JavaScript
import { __ } from "@wordpress/i18n";
|
|
import { useBlockProps, InnerBlocks } from "@wordpress/block-editor";
|
|
import "./editor.scss";
|
|
|
|
export default function Edit() {
|
|
return (
|
|
<section
|
|
{...useBlockProps({
|
|
className: "block-front-header",
|
|
})}
|
|
>
|
|
<div className="front-header__innerblocks">
|
|
<InnerBlocks
|
|
template={[
|
|
["core/paragraph", { placeholder: "Ajouter ici le texte" }],
|
|
]}
|
|
allowedBlocks={[
|
|
"core/paragraph",
|
|
"core/list",
|
|
"core/button",
|
|
"core/buttons",
|
|
]}
|
|
/>
|
|
</div>
|
|
</section>
|
|
);
|
|
}
|