UNPKG

@wordpress/block-library

Version:
19 lines (18 loc) • 633 B
"use strict"; Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } }); // packages/block-library/src/template-part/edit/utils/create-template-part-id.js /** * Generates a template part Id based on slug and theme inputs. * * @param {string} theme the template part's theme. * @param {string} slug the template part's slug * @return {string|null} the template part's Id. */ function createTemplatePartId(theme, slug) { return theme && slug ? theme + "//" + slug : null; } exports.createTemplatePartId = createTemplatePartId; //# sourceMappingURL=create-template-part-id.cjs.map