discourse/app/assets/javascripts/discourse-common/addon/helpers/d-icon.js
2020-12-01 15:31:26 -03:00

8 lines
280 B
JavaScript

import { htmlSafe } from "@ember/template";
import { registerUnbound } from "discourse-common/lib/helpers";
import { renderIcon } from "discourse-common/lib/icon-library";
registerUnbound("d-icon", function (id, params) {
return htmlSafe(renderIcon("string", id, params));
});