import Component  from '../component.js'
import CoEuiToolbarLogo from './eui-toolbar-logo.js'
import CoEuiToolbarEnvironment from './eui-toolbar-environment.js'
import CoEuiToolbarApp from './eui-toolbar-app.js'
import CoEuiToolbarItems from './eui-toolbar-items.js'
import CoEuiToolbarMenu from './eui-toolbar-menu.js'

export default class CoEuiToolbar extends Component {
  constructor(parent) {
    let selector = 'eui-toolbar';
    super(parent, selector);
    //https://citnet.tech.ec.europa.eu/CITnet/stash/projects/CSDR/repos/eui/browse/packages/components/layout/eui-toolbar/toolbar.component.html
  }
  get euiToolbarLogoCO() {
    return new CoEuiToolbarLogo(this.currentPath);
  }
  async hasHeaderLogo() {
    return await (await this.euiToolbarLogoCO.element()).isExisting();
  }
  get euiToolbarEnvironmentCO() {
    return new CoEuiToolbarEnvironment(this.currentPath);
  }
  async hasHeaderEnvironment() {
    return await (await this.euiToolbarEnvironmentCO.element()).isExisting();
  }
  get euiToolbarAppCO() {
    return new CoEuiToolbarApp(this.currentPath);
  }
  async hasAppName() {
    return await (await this.euiToolbarAppCO.element()).isExisting();
  }
  get euiToolbarItemsCO() {
    return new CoEuiToolbarItems(this.currentPath);
  }
  get euiToolbarMenuCO() {
    return new CoEuiToolbarMenu(this.currentPath);
  }
}


