import { registerBlockStyle, registerBlockVariation } from "@wordpress/blocks";

registerBlockStyle("core/buttons", {
	name: "big-buttons",
	label: "Grands boutons ",
});

registerBlockVariation("core/button", {
	name: "email-button",
	title: "Bouton email",
	description: "Ajoute une icone email devant le texte.",
	attributes: {
		className: "email-button",
	},
	isActive: ({ className = "" }) =>
		className.split(/\s+/).includes("email-button"),
	scope: ["inserter", "transform", "block"],
});
