import { useBlockProps, InnerBlocks } from "@wordpress/block-editor"; import ShapeA from "./shapeA.jsx"; import ShapeB from "./shapeB.jsx"; import ShapeC from "./shapeC.jsx"; /** * Ancien save (blockWidth) — conservé pour la migration des blocs. */ export default function deprecatedSave({ attributes }) { const { backgroundColor, textColor, hasLightBackground, blockVariant, blockWidth, shapeType, borderColor, } = attributes; const blockWidthClass = blockWidth === "contained" ? "aligncontained" : blockWidth === "wide" ? "alignwide" : "alignfull"; const lightnessClass = hasLightBackground ? "content-box--bg-light" : "content-box--bg-dark"; return (
{blockVariant === "backgrounded" && backgroundColor && shapeType === "shapeA" && ( )} {blockVariant === "backgrounded" && backgroundColor && shapeType === "shapeB" && ( )} {blockVariant === "backgrounded" && backgroundColor && shapeType === "shapeC" && ( )} {blockVariant === "framed" && backgroundColor && shapeType === "shapeA" && ( )} {blockVariant === "framed" && backgroundColor && shapeType === "shapeB" && ( )} {blockVariant === "framed" && backgroundColor && shapeType === "shapeC" && ( )} {blockVariant === "framed-backgrounded" && backgroundColor && shapeType === "shapeA" && ( )} {blockVariant === "framed-backgrounded" && backgroundColor && shapeType === "shapeB" && ( )} {blockVariant === "framed-backgrounded" && backgroundColor && shapeType === "shapeC" && ( )}
); }