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

export default class CoUxDiscussionThreadItem extends Component {

  constructor(parent) {
    let selector = 'ux-discussion-thread-item';
    super(parent, selector);
    //https://citnet.tech.ec.europa.eu/CITnet/stash/projects/CSDR/repos/eui/browse/packages/components/src/lib/ux-components/ux-discussion-thread/ux-discussion-thread-item.component.html
  }
  get dataE2E()  {
    let path = '//li[@data-e2e = "ux-discussion-thread-item"]';
    return this.currentPath + path;
  }
  get badge()  {
    let path = '//div[contains(@class,"ux-discussion-thread-badge")]';
    return this.dataE2E + path;
  }
  get icon()  {
    let path = '//span';
    return this.badge + path;
  }
  get panel()  {
    let path = '//div[contains(@class,"ux-discussion-thread-panel")]';
    return this.dataE2E + path;
  }
  get header()  {
    let path = '//div[contains(@class,"ux-discussion-thread-header")]';
    return this.panel + path;
  }
  get heading()  {
    let path = '//div[contains(@class,"ux-discussion-thread-heading")]';
    return this.header + path;
  }
  get title()  {
    let path = '//div[contains(@class,"ux-discussion-thread-title")]';
    return this.heading + path;
  }
  get time()  {
    let path = '//div[contains(@class,"ux-discussion-thread-time")]';
    return this.heading + path;
  }
  get androidTime()  {
    let path = '//span[contains(@class,"ion-android-time")]';
    return this.time + path;
  }
  get subheading()  {
    let path = '//div[contains(@class,"ux-discussion-thread-subheading")]';
    return this.header + path;
  }
  get body()  {
    let path = '//div[contains(@class,"ux-discussion-thread-body")]';
    return this.panel + path;
  }
  get wordBreak()  {
    let path = '//div[contains(@class,"ux-discussion-thread-body__word-break")]';
    return this.body + path;
  }
}


