discourse/app/assets/javascripts/discourse-common/addon/helpers/d-icon.js

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

10 lines
316 B
JavaScript
Raw Normal View History

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);