import { mergeStyles } from '@fluentui/merge-styles'; import { getIcon } from './icons'; var defaultIconStyles = { display: 'inline-block', }; /** * Gets an icon classname. You should be able to add this classname to an I tag with no * additional classnames, and render the icon. * * @public */ export function getIconClassName(name) { var className = ''; var icon = getIcon(name); if (icon) { className = mergeStyles(icon.subset.className, defaultIconStyles, { selectors: { '::before': { content: "\"".concat(icon.code, "\""), }, }, }); } return className; } //# sourceMappingURL=getIconClassName.js.map