2024-06-06 21:07:08 +08:00
|
|
|
import Component from "@glimmer/component";
|
|
|
|
import { tracked } from "@glimmer/tracking";
|
2024-07-29 12:20:12 +08:00
|
|
|
import I18n from "discourse-i18n";
|
2024-06-06 21:07:08 +08:00
|
|
|
|
|
|
|
export default class AdminConfigAreaCard extends Component {
|
|
|
|
@tracked collapsed = false;
|
|
|
|
|
2024-07-29 12:20:12 +08:00
|
|
|
get computedHeading() {
|
|
|
|
if (this.args.heading) {
|
|
|
|
return I18n.t(this.args.heading);
|
|
|
|
}
|
|
|
|
return this.args.translatedHeading;
|
|
|
|
}
|
|
|
|
|
2024-06-06 21:07:08 +08:00
|
|
|
<template>
|
2024-07-01 10:40:37 +08:00
|
|
|
<section class="admin-config-area-card" ...attributes>
|
2024-07-29 12:20:12 +08:00
|
|
|
<h3 class="admin-config-area-card__title">{{this.computedHeading}}</h3>
|
2024-06-06 21:07:08 +08:00
|
|
|
<div class="admin-config-area-card__content">
|
|
|
|
{{yield}}
|
|
|
|
</div>
|
|
|
|
</section>
|
|
|
|
</template>
|
|
|
|
}
|