UNPKG

@wordpress/block-library

Version:
15 lines 482 B
/** * WordPress dependencies */ import { header as headerIcon, footer as footerIcon, sidebar as sidebarIcon, symbolFilled as symbolFilledIcon } from '@wordpress/icons'; export const getTemplatePartIcon = iconName => { if ('header' === iconName) { return headerIcon; } else if ('footer' === iconName) { return footerIcon; } else if ('sidebar' === iconName) { return sidebarIcon; } return symbolFilledIcon; }; //# sourceMappingURL=get-template-part-icon.js.map