2017-07-26 16:25:09 -04:00
|
|
|
import { registerUnbound } from "discourse-common/lib/helpers";
|
|
|
|
import { renderIcon } from "discourse-common/lib/icon-library";
|
2020-04-30 16:41:02 -04:00
|
|
|
import { htmlSafe } from "@ember/template";
|
2017-07-26 16:25:09 -04:00
|
|
|
|
|
|
|
registerUnbound("d-icon", function (id, params) {
|
2020-04-30 16:41:02 -04:00
|
|
|
return htmlSafe(renderIcon("string", id, params));
|
2017-07-26 16:25:09 -04:00
|
|
|
});
|