homegrade_blocks_production/blocks/offres-emplois/src/edit.js

32 lines
769 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-offres-emplois`,
})}
>
<InnerBlocks
allowedBlocks={["homegrade-content-blocks/section-titling"]}
template={[
[
"homegrade-content-blocks/section-titling",
{ sectionTitle: __("Offres d'emploi", "homegrade") },
],
]}
templateLock={true}
/>
<p className="temp_guidance_sentence">
{__(
"Les éléments encodés dans la section jobs s'afficheront ici",
"homegrade-blocks__text-backoffice"
)}
</p>
</section>
);
}