mirror of
https://github.com/discourse/discourse.git
synced 2025-10-03 17:21:20 +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));
|
|
}
|