mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 04:23:39 +08:00
14 lines
474 B
JavaScript
14 lines
474 B
JavaScript
import { registerUnbound } from "discourse-common/lib/helpers";
|
|
import { renderIcon } from "discourse-common/lib/icon-library";
|
|
import deprecated from "discourse-common/lib/deprecated";
|
|
import { htmlSafe } from "@ember/template";
|
|
|
|
export function iconHTML(id, params) {
|
|
return renderIcon("string", id, params);
|
|
}
|
|
|
|
registerUnbound("fa-icon", function (icon, params) {
|
|
deprecated("Use `{{d-icon}}` instead of `{{fa-icon}}");
|
|
return htmlSafe(iconHTML(icon, params));
|
|
});
|