UNPKG

@wordpress/editor

Version:
16 lines (15 loc) 391 B
/** * WordPress dependencies */ import * as icons from '@wordpress/icons'; /** * Helper function to retrieve the corresponding icon by name. * * @param {string} iconName The name of the icon. * * @return {Object} The corresponding icon. */ export function getTemplatePartIcon(iconName) { return icons[iconName] || icons.layout; } //# sourceMappingURL=get-template-part-icon.js.map