mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
8 lines
280 B
JavaScript
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));
|
|
});
|