import Component from "@glimmer/component"; import { hash } from "@ember/helper"; import { htmlSafe } from "@ember/template"; import DBreadcrumbsContainer from "discourse/components/d-breadcrumbs-container"; import DBreadcrumbsItem from "discourse/components/d-breadcrumbs-item"; import HorizontalOverflowNav from "discourse/components/horizontal-overflow-nav"; import i18n from "discourse-common/helpers/i18n"; import { DangerButton, DefaultButton, PrimaryButton, } from "admin/components/admin-page-action-button"; export default class AdminPageHeader extends Component { 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); } } }