UNPKG

@wordpress/block-library

Version:
18 lines (16 loc) 511 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createTemplatePartId = createTemplatePartId; /** * 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; } //# sourceMappingURL=create-template-part-id.js.map