2017-07-26 16:33:17 -04:00
|
|
|
import { registerUnbound } from "discourse-common/lib/helpers";
|
|
|
|
import { renderIcon } from "discourse-common/lib/icon-library";
|
2020-04-30 16:41:02 -04:00
|
|
|
import { htmlSafe } from "@ember/template";
|
2017-07-26 16:33:17 -04:00
|
|
|
|
|
|
|
registerUnbound("check-icon", function(value) {
|
|
|
|
let icon = value ? "check" : "times";
|
2020-04-30 16:41:02 -04:00
|
|
|
return htmlSafe(renderIcon("string", icon));
|
2017-07-26 16:33:17 -04:00
|
|
|
});
|