Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
renderIcon(data: IRenderData): VirtualElement | VirtualElementPass {
const { title } = data;
let className = this.createIconClass(data);
if (title.iconRenderer) {
return hpass('div', {className, title: title.iconLabel}, title.iconRenderer);
} else {
return h.div({className}, title.iconLabel);
}
}