2020-04-30 16:41:02 -04:00
|
|
|
import { htmlSafe } from "@ember/template";
|
2017-07-26 16:25:09 -04:00
|
|
|
import { registerUnbound } from "discourse-common/lib/helpers";
|
|
|
|
import { renderIcon } from "discourse-common/lib/icon-library";
|
|
|
|
|
2023-07-20 16:01:12 -04:00
|
|
|
export default function icon(id, options = {}) {
|
|
|
|
return htmlSafe(renderIcon("string", id, options));
|
|
|
|
}
|
|
|
|
|
|
|
|
registerUnbound("d-icon", icon);
|