UNPKG

@wordpress/block-library

Version:
26 lines (25 loc) 565 B
import initBlock from "../utils/init-block"; import edit from "./edit"; import metadata from "./block.json"; import save from "./save"; import transforms from "./transforms"; const { name } = metadata; const settings = { transforms, getEditWrapperProps(attributes) { const { width } = attributes; if ("wide" === width || "full" === width) { return { "data-align": width }; } }, edit, save }; const init = () => initBlock({ name, metadata, settings }); export { init, metadata, name, settings }; //# sourceMappingURL=index.js.map