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