import Component from "@glimmer/component"; import { fn } from "@ember/helper"; import { on } from "@ember/modifier"; import { action } from "@ember/object"; import DButton from "discourse/components/d-button"; import withEventValue from "discourse/helpers/with-event-value"; import autoFocus from "discourse/modifiers/auto-focus"; import i18n from "discourse-common/helpers/i18n"; import not from "truth-helpers/helpers/not"; export default class AiHelperCustomPrompt extends Component { @action sendInput(event) { if (event.key !== "Enter") { return; } return this.args.submit(this.args.promptArgs); } }