@wordpress/block-library
Version:
Block library for the WordPress editor.
28 lines (27 loc) • 756 B
JavaScript
// packages/block-library/src/template-part/edit/utils/get-template-part-icon.js
import {
header as headerIcon,
footer as footerIcon,
sidebar as sidebarIcon,
tableColumnAfter as overlayIcon,
symbolFilled as symbolFilledIcon
} from "@wordpress/icons";
var getTemplatePartIcon = (areaOrIconName) => {
if ("header" === areaOrIconName) {
return headerIcon;
} else if ("footer" === areaOrIconName) {
return footerIcon;
} else if ("sidebar" === areaOrIconName) {
return sidebarIcon;
} else if ("overlay" === areaOrIconName) {
return overlayIcon;
}
if ("menu" === areaOrIconName) {
return overlayIcon;
}
return symbolFilledIcon;
};
export {
getTemplatePartIcon
};
//# sourceMappingURL=get-template-part-icon.js.map