mirror of
https://github.com/discourse/discourse.git
synced 2025-02-23 17:57:23 +08:00

Followup to 7d8974d02f7360b324b446868463e950fe92883f Co-authored-by: David Taylor <david@taylorhq.com>
11 lines
352 B
JavaScript
11 lines
352 B
JavaScript
import { htmlSafe } from "@ember/template";
|
|
import { registerRawHelper } from "discourse-common/lib/helpers";
|
|
import { renderIcon } from "discourse-common/lib/icon-library";
|
|
|
|
registerRawHelper("check-icon", checkIcon);
|
|
|
|
export default function checkIcon(value) {
|
|
let icon = value ? "check" : "xmark";
|
|
return htmlSafe(renderIcon("string", icon));
|
|
}
|