import Component from '../../component.js'

export default class CoEuiNotificationItem extends Component {
  constructor(parent) {
    let selector = '//li[contains(@class,"eui-notification-item")]';
    super(parent, selector);
    //https://citnet.tech.ec.europa.eu/CITnet/stash/projects/CSDR/repos/eui/browse/packages/components-next/src/lib/layout/eui-notifications/eui-notifications.component.html
  }
  get labelWrapper() {
    let path = '//div[contains(@class,"label-wrapper")]';
    return this.currentPath + path;
  }
  get label() {
    let path = '//div[contains(@class,"label")]';
    return this.labelWrapper + path;
  }
  get sublabel() {
    let path = '//div[contains(@class,"sub-label")]';
    return this.labelWrapper + path;
  }
  get dateWrapper() {
    let path = '//div[contains(@class,"date-wrapper")]';
    return this.currentPath + path;
  }
  get date() {
    let path = '//div[contains(@class,"date")]';
    return this.dateWrapper + path;
  }
  get daysFrom() {
    let path = '//div[contains(@class,"days-from")]';
    return this.dateWrapper + path;
  }
  get daysAgoText() {
    let path = '//div[contains(text(),"x days ago")]';
    return this.dateWrapper + path;
  }
}


