mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-23 02:41:50 +03:00
c65b980ada
closes TryGhost/Team#2086
14 lines
295 B
JavaScript
14 lines
295 B
JavaScript
import Component from '@glimmer/component';
|
|
|
|
export default class TabPanelComponent extends Component {
|
|
index = this.args.index();
|
|
|
|
get isSelectedTab() {
|
|
return this.args.selectedIndex === this.index;
|
|
}
|
|
|
|
get tabId() {
|
|
return this.args.tabIds[this.index];
|
|
}
|
|
}
|