10 lines
316 B
JavaScript
10 lines
316 B
JavaScript
import { htmlSafe } from "@ember/template";
|
|
import { registerRawHelper } from "discourse-common/lib/helpers";
|
|
import { renderIcon } from "discourse-common/lib/icon-library";
|
|
|
|
export default function icon(id, options = {}) {
|
|
return htmlSafe(renderIcon("string", id, options));
|
|
}
|
|
|
|
registerRawHelper("d-icon", icon);
|