import Component from "@glimmer/component"; import { tracked } from "@glimmer/tracking"; import { LinkTo } from "@ember/routing"; import concatClass from "discourse/helpers/concat-class"; import { cook } from "discourse/lib/text"; import icon from "discourse-common/helpers/d-icon"; import I18n from "discourse-i18n"; import AiPersonaEditor from "./ai-persona-editor"; export default class AiPersonaListEditor extends Component { @tracked _noPersonaText = null; get noPersonaText() { if (this._noPersonaText === null) { const raw = I18n.t("discourse_ai.ai_persona.no_persona_selected"); cook(raw).then((result) => { this._noPersonaText = result; }); } return this._noPersonaText; } }