import Component  from '../component.js'
import { elementAttributeContains } from '../../core/utils.js'
import CoEuiSidebarToggle from './eui-sidebar-toggle.js'
import CoEuiHeader from './eui-header.js'

export default class CoEuiAppHeader extends Component {
    constructor(parent) {
      let selector = 'eui-app-header';
      super(parent, selector);
      //https://citnet.tech.ec.europa.eu/CITnet/stash/projects/CSDR/repos/eui/browse/packages/components/layout/eui-app/eui-app-header/header.component.html?at=support%2F13.x
    }
    async isHeaderShrinked() {
      return await elementAttributeContains(this.currentPath, 'class', 'eui-app-header--shrinked');
    }
    get euiSidebarToggleCO() {
      return new CoEuiSidebarToggle(this.currentPath);
    }
    get euiHeaderCO() {
      return new CoEuiHeader(this.currentPath);
    }
}


