import Component from "@glimmer/component"; import { hash } from "@ember/helper"; import { service } from "@ember/service"; import { htmlSafe } from "@ember/template"; import DropdownMenu from "discourse/components/dropdown-menu"; import i18n from "discourse-common/helpers/i18n"; import { DangerActionListItem, DangerButton, DefaultActionListItem, DefaultButton, PrimaryActionListItem, PrimaryButton, WrappedActionListItem, WrappedButton, } from "admin/components/admin-page-action-button"; import DMenu from "float-kit/components/d-menu"; export default class AdminPageSubheader extends Component { @service site; get title() { if (this.args.titleLabelTranslated) { return this.args.titleLabelTranslated; } else if (this.args.titleLabel) { return i18n(this.args.titleLabel); } } get description() { if (this.args.descriptionLabelTranslated) { return this.args.descriptionLabelTranslated; } else if (this.args.descriptionLabel) { return i18n(this.args.descriptionLabel); } } }