import Component from '../../component.js'
import CoEuiSidebarToggle from './eui-sidebar-toggle.js'
import CoEuiLanguageSelector from './eui-language-selector.js'

export default class CoEuiAppToolbar extends Component {
    constructor(parent) {
      let selector = 'eui-app-toolbar';
      super(parent, selector);
      //https://citnet.tech.ec.europa.eu/CITnet/stash/projects/CSDR/repos/eui/browse/packages/components/layout/eui-app/eui-app-toolbar/toolbar.component.html
    }
    get euiSidebarToggleCO() {
      return new CoEuiSidebarToggle(this.currentPath);
    }
    async hasSidebar() {
      return await (await $(this.euiAppSidebarCO.currentPath)).isExisting();
    }
    get euiLanguageSelectorCO() {
      return new CoEuiLanguageSelector(this.currentPath);
    }
}


