discourse/app/assets/javascripts/discourse-common/helpers/d-icon.js.es6

7 lines
252 B
JavaScript

import { registerUnbound } from 'discourse-common/lib/helpers';
import { renderIcon } from 'discourse-common/lib/icon-library';
registerUnbound('d-icon', function(id, params) {
return new Handlebars.SafeString(renderIcon('string', id, params));
});