UNPKG

@wordpress/block-library

Version:
27 lines (26 loc) • 780 B
import { contents } from "@wordpress/icons"; import initBlock from "../utils/init-block.mjs"; import edit from "./edit.mjs"; import save from "./save.mjs"; import metadata from "./block.json"; // packages/block-library/src/tab-panels/index.js /** * Initial template applied only when the block is first inserted (i.e. when * inner blocks are empty). templateLock is false, so this is never applied to * existing blocks that already have tab panels saved. */ const TAB_PANELS_TEMPLATE = [["core/tab-panel"], ["core/tab-panel"]]; const { name } = metadata; const settings = { icon: contents, template: TAB_PANELS_TEMPLATE, edit, save }; const init = () => initBlock({ name, metadata, settings }); export { init, metadata, name, settings }; //# sourceMappingURL=index.mjs.map