import { BaseView } from '@/shared/base/BaseView';

export abstract class BasePage extends BaseView {
  readonly main = this.host.getByTestId('app-page');
  readonly header = this.main.getByTestId('app-page-header');
  readonly body = this.main.getByTestId('app-page-content');
  readonly title = this.header.getByTestId('base-view-header-title');
  readonly subtitle = this.header.getByTestId('base-view-header-subtitle');

  async reload(): Promise<void> {
    await this.host.reload();
  }
}
