import Component  from '../component.js'

export default class CoEuiBreadcrumbItem extends Component {
  constructor(parent) {
    let selector = '//li[contains(@class,"eui-breadcrumb-item")]';
    super(parent, selector);
    //https://citnet.tech.ec.europa.eu/CITnet/stash/projects/CSDR/repos/eui/browse/packages/components/layout/eui-breadcrumb/breadcrumb.component.html?at=support%2F13.x
  }
  get homeTitle() {
    let path = '//a[contains(@title,"Home")]';
    return this.currentPath + path;
  }
  get bigSectionTitle() {
    let path = '//a[contains(@title,"Section")]';
    return this.currentPath + path;
  }
  get subsectionTitle() {
    let path = '//a[contains(@title,"Sub-section")]';
    return this.currentPath + path;
  }
  get activeItem() {
    let path = '/self::li[contains(@class,"eui-breadcrumb-item--active")]';
    return this.currentPath + path;
  }
}


