import Component from "@glimmer/component"; import { service } from "@ember/service"; import { htmlSafe } from "@ember/template"; export default class AiTopicGist extends Component { @service gists; get shouldShow() { return this.gists.preference === "table-ai" && this.gists.shouldShow; } get hasGist() { return !!this.gist; } get gist() { return this.args.topic.get("ai_topic_gist"); } get escapedExceprt() { return this.args.topic.get("escapedExcerpt"); } }