mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 22:33:45 +08:00
a914d3230b
Followup to 7d8974d02f
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));
|
|
}
|