import { icon, library } from "@fortawesome/fontawesome-svg-core";
export function getIconHtmlFromIconDefinition(iconDefinition) {
    if (!iconDefinition) {
        return null;
    }
    let faIcon;
    library.add(iconDefinition);
    faIcon = icon(iconDefinition);
    return faIcon ? faIcon.html[0] : null;
}
//# sourceMappingURL=getIconHtmlFromIconDefinition.js.map
