UNPKG

@wordpress/block-library

Version:
28 lines (27 loc) • 779 B
import { more } from "@wordpress/icons"; import initBlock from "../utils/init-block.mjs"; import edit from "./edit.mjs"; import metadata from "./block.json"; import save from "./save.mjs"; import transforms from "./transforms.mjs"; // packages/block-library/src/more/index.js const { name } = metadata; const settings = { icon: more, example: {}, __experimentalLabel(attributes, { context }) { const customName = attributes?.metadata?.name; if ((context === "list-view" || context === "breadcrumb") && customName) return customName; if (context === "accessibility") return attributes.customText; }, transforms, edit, save }; const init = () => initBlock({ name, metadata, settings }); export { init, metadata, name, settings }; //# sourceMappingURL=index.mjs.map