UNPKG

@wordpress/editor

Version:
26 lines (21 loc) 629 B
"use strict"; var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard"); Object.defineProperty(exports, "__esModule", { value: true }); exports.getTemplatePartIcon = getTemplatePartIcon; var icons = _interopRequireWildcard(require("@wordpress/icons")); /** * WordPress dependencies */ /** * Helper function to retrieve the corresponding icon by name. * * @param {string} iconName The name of the icon. * * @return {Object} The corresponding icon. */ function getTemplatePartIcon(iconName) { return icons[iconName] || icons.layout; } //# sourceMappingURL=get-template-part-icon.js.map