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",
						"core/heading",
						"carhop-blocks/cta-group",
						"carhop-blocks/cta",
						"carhop-blocks/heading",
						"carhop-blocks/decorative-shapes",
					]}
				/>
			</div>
		</section>
	);
}
