import Component  from '../component.js'
import { elementAttributeContains } from '../../core/utils.js'
import CoEuiIconSvg from './eui-icon-svg.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
  }
  get euiIconSvgCO() {
    return new CoEuiIconSvg(this.currentPath).byAttributeNotContains('class', 'eui-menu-item__link-icon--default');
  }
  get euiIconSvgNoDefaultCO() {
    return new CoEuiIconSvg(this.euiIconSvgCO).byAttributeContains('class', 'eui-menu-item__link-icon--default');
  }
  get linkIcon(){
    return this.currentPath + '//span[contains(@class, "eui-menu-item__link-icon")]';
  }
  async hasCategoryIconNone() {
    return await elementAttributeContains(this.linkIcon, 'class', 'eui-menu-item__link-icon--none');
  }
}
