UNPKG

@wordpress/block-library

Version:
8 lines (7 loc) 623 B
{ "version": 3, "sources": ["../../../../src/template-part/edit/utils/create-template-part-id.js"], "sourcesContent": ["/**\n * Generates a template part Id based on slug and theme inputs.\n *\n * @param {string} theme the template part's theme.\n * @param {string} slug the template part's slug\n * @return {string|null} the template part's Id.\n */\nexport function createTemplatePartId( theme, slug ) {\n\treturn theme && slug ? theme + '//' + slug : null;\n}\n"], "mappings": ";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAOO,SAAS,qBAAsB,OAAO,MAAO;AACnD,SAAO,SAAS,OAAO,QAAQ,OAAO,OAAO;AAC9C;", "names": [] }