import Component from '../component.js';
import UlComponent from '../ul.js'
import CoEuiMenuItem from './eui-menu-item.js'

export default class CoEuiMenuItemRef 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.component.html?at=refs%2Fheads%2Fmaster
  }
  get euiMenuItemCO() {
    return new CoEuiMenuItem(this.currentPath);
  }
  get submenuCO() {
    return new UlComponent(this.euiMenuItemCO).byClassContains("eui-menu-sub");
  }
  get euiMenuItemSubCO() {
    return new CoEuiMenuItemRef(this.submenuCO);
  }
}