@wordpress/block-library
Version:
Block library for the WordPress editor.
25 lines (24 loc) • 641 B
JavaScript
// 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