discourse/app/assets/javascripts/discourse-common/addon/helpers/fa-icon.js
David Taylor 48193767bf DEV: Sort imports
Automatically generated by `eslint --fix` to satisfy the updated configuration
2023-10-10 21:46:54 +01:00

14 lines
474 B
JavaScript

import { htmlSafe } from "@ember/template";
import deprecated from "discourse-common/lib/deprecated";
import { registerUnbound } from "discourse-common/lib/helpers";
import { renderIcon } from "discourse-common/lib/icon-library";
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));
});