import Component from '../component.js'
import CoEuiMenuItemIconContent from './eui-menu-item-icon-content.js';
import CoEuiIconSvg from './eui-icon-svg.js';
import SpanComponent from '../span.js';
import DivComponent from '../div.js';
import CoEuiMenuItemEndContent from './eui-menu-item-end-content.js';

export default class CoEuiMenuItemLinkContent extends Component {
  constructor(parent) {
    super(parent);
    //https://citnet.tech.ec.europa.eu/CITnet/stash/projects/CSDR/repos/eui/browse/packages/components/eui-menu/eui-menu-item.component.html
  }
  get startBlockCO() {
    return new DivComponent(this.currentPath).addPredicateClassContains('eui-menu-item__link-start-block');
  }
  get iconContentCO() {
    return new CoEuiMenuItemIconContent(this.startBlockCO);
  }
  get contentBlockCO() {
    return new DivComponent(this.currentPath).addPredicateClassContains('eui-menu-item__link-content-block');
  }
  get labelContainerCO() {
    return new DivComponent(this.contentBlockCO).addPredicateClassContains('eui-menu-item__link-label-container');
  }
  get linkLabelCO() {
    return new SpanComponent(this.labelContainerCO).addPredicateClassContains('eui-menu-item__link-label');
  }
  get iconCO() {
    return new CoEuiIconSvg(this.labelContainerCO);
  }
  get endBlockCO() {
    return new DivComponent(this.currentPath).addPredicateClassContains('eui-menu-item__link-end-block');
  }
  get itemEndContentCO() {
    return new CoEuiMenuItemEndContent(this.endBlockCO);
  }
}


