36 lines
818 B
JavaScript
36 lines
818 B
JavaScript
import { __ } from "@wordpress/i18n";
|
|
import { useBlockProps } from "@wordpress/block-editor";
|
|
import { InnerBlocks } from "@wordpress/block-editor";
|
|
import "./editor.scss";
|
|
|
|
export default function Edit() {
|
|
return (
|
|
<section
|
|
{...useBlockProps({
|
|
className: `homegrade-blocks-kit-presse`,
|
|
})}
|
|
>
|
|
<InnerBlocks
|
|
allowedBlocks={[
|
|
"homegrade-content-blocks/section-titling",
|
|
"core/paragraph",
|
|
]}
|
|
template={[
|
|
[
|
|
"homegrade-content-blocks/section-titling",
|
|
{ sectionTitle: __("Kit presse", "homegrade") },
|
|
],
|
|
["core/paragraph"],
|
|
]}
|
|
templateLock={true}
|
|
/>
|
|
<p className="temp_guidance_sentence">
|
|
{__(
|
|
"Les éléments déposés dans le kit press s'afficheront ici",
|
|
"homegrade-blocks__text-backoffice"
|
|
)}
|
|
</p>
|
|
</section>
|
|
);
|
|
}
|