import Component from '../component.js'
import { elementAttributeContains } from '../../core/utils.js'
import CoEuiIconSvg from './eui-icon-svg.js';
import SpanComponent from '../span.js';


export default class CoEuiMenuItemIconContent 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?at=refs%2Fheads%2Fmaster
  }
  get euiIconSvgCO() {
    return new CoEuiIconSvg(this.currentPath).byAttributeNotContains('class', 'eui-menu-item__link-icon--default');
  }
  get euiIconSvgNoDefaultCO() {
    return new CoEuiIconSvg(this.currentPath).byAttributeContains('class', 'eui-menu-item__link-icon--default');
  }
  get linkIconCO() {
    return new SpanComponent(this.currentPath).byClassContains('eui-menu-item__link-icon');
  }
  async hasCategoryIconNone() {
    return await elementAttributeContains(this.linkIconCO.currentPath, 'class', 'eui-menu-item__link-icon--none');
  }
}
