UNPKG

@wordpress/block-library

Version:
25 lines (24 loc) 641 B
// packages/block-library/src/list/save.js import { InnerBlocks, useBlockProps } from "@wordpress/block-editor"; import { jsx } from "react/jsx-runtime"; function save({ attributes }) { const { ordered, type, reversed, start } = attributes; const TagName = ordered ? "ol" : "ul"; return /* @__PURE__ */ jsx( TagName, { ...useBlockProps.save({ reversed, start, style: { listStyleType: ordered && type !== "decimal" ? type : void 0 } }), children: /* @__PURE__ */ jsx(InnerBlocks.Content, {}) } ); } export { save as default }; //# sourceMappingURL=save.js.map