import Component from "@glimmer/component"; import { hash } from "@ember/helper"; import { service } from "@ember/service"; import { htmlSafe } from "@ember/template"; import { or } from "truth-helpers"; import DBreadcrumbsContainer from "discourse/components/d-breadcrumbs-container"; import DBreadcrumbsItem from "discourse/components/d-breadcrumbs-item"; import DropdownMenu from "discourse/components/dropdown-menu"; import HorizontalOverflowNav from "discourse/components/horizontal-overflow-nav"; import { i18n } from "discourse-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 AdminPageHeader 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); } } }