import { __ } from "@wordpress/i18n";
import { useBlockProps, InnerBlocks } from "@wordpress/block-editor";
import "./editor.scss";

export default function Edit() {
	return (
		<>
			<section
				{...useBlockProps({
					className: "carhop-heading",
				})}
			>
				<div className="carhop-heading__innerblocks">
					<InnerBlocks
						template={[
							[
								"core/paragraph",
								{
									placeholder: "Saisir le sous-titre supérieur",
									content: "Sous-titre supérieur",
								},
							],
							[
								"core/heading",
								{ placeholder: "Saisir le titre", content: "Titre" },
							],
						]}
						allowedBlocks={[
							"core/heading",
							"core/paragraph",
							"core/post-title",
						]}
					/>
				</div>
			</section>
		</>
	);
}
