How to use the @talend/icons/dist/info.getIconHref function in @talend/icons

To help you get started, we’ve selected a few @talend/icons examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Talend / ui / packages / components / src / IconsProvider / IconsProvider.component.js View on Github external
export function getIconHREF(name) {
	if (context.ids.indexOf(name) !== -1) {
		return `#${name}`;
	}
	let href = context.get(name);
	if (!href) {
		if (process.env.ICON_BUNDLE) {
			href = getIcon(name);
		} else {
			// backward compatibility for test
			href = `#${name}`;
		}
	}
	return href;
}

@talend/icons

A scalable set of icons handcrafted with <3 by Talend.

Apache-2.0
Latest version published 2 months ago

Package Health Score

81 / 100
Full package analysis