mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-24 12:54:25 +08:00
10 lines
352 B
JavaScript
Vendored
10 lines
352 B
JavaScript
Vendored
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));
|
|
}
|