import { useBlockProps, InnerBlocks } from "@wordpress/block-editor"; import ShapeA from "./shapeA.jsx"; import ShapeB from "./shapeB.jsx"; import ShapeC from "./shapeC.jsx"; export default function save({ attributes }) { const { backgroundColor, textColor, hasLightBackground, hasBackgroundColor, blockVariant, blockWidth, shapeType, borderColor, } = attributes; 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" && ( )}
); }