import Component from '../component.js';
import CoEuiList from './eui-list.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
  }
  get euiMenuItemCO() {
    return new CoEuiMenuItem(this.currentPath);
  }
  get submenuCO() {
    return new CoEuiList(this.euiMenuItemCO).addPredicateClassContains("eui-menu-sub");
  }
  get euiMenuItemSubCO() {
    return new CoEuiMenuItemRef(this.submenuCO);
  }
}