import Component from "@glimmer/component"; import { Input } from "@ember/component"; import { on } from "@ember/modifier"; import { action } from "@ember/object"; export default class AiPersonaCommandOptionEditor extends Component { get isBoolean() { return this.args.option.type === "boolean"; } get selectedValue() { return this.args.option.value.value === "true"; } @action onCheckboxChange(event) { this.args.option.value.value = event.target.checked ? "true" : "false"; } }