mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-14 23:27:06 +08:00
7 lines
234 B
JavaScript
7 lines
234 B
JavaScript
import { htmlSafe } from "@ember/template";
|
|
import { renderIcon } from "discourse/lib/icon-library";
|
|
|
|
export default function checkIcon(value) {
|
|
let icon = value ? "check" : "xmark";
|
|
return htmlSafe(renderIcon("string", icon));
|
|
}
|