37 lines
846 B
JavaScript
37 lines
846 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-press-photo-kit`,
|
|
})}
|
|
>
|
|
<InnerBlocks
|
|
allowedBlocks={[
|
|
"homegrade-content-blocks/section-titling",
|
|
"core/paragraph",
|
|
]}
|
|
template={[
|
|
[
|
|
"homegrade-content-blocks/section-titling",
|
|
{
|
|
sectionTitle: __("Photos", "homegrade-blocks__texte-fonctionnel"),
|
|
},
|
|
],
|
|
]}
|
|
templateLock={true}
|
|
/>
|
|
<p className="temp_guidance_sentence">
|
|
{__(
|
|
"Les éléments déposés dans le press photo kit press s'afficheront ici",
|
|
"homegrade-blocks__text-backoffice"
|
|
)}
|
|
</p>
|
|
</section>
|
|
);
|
|
}
|