import Component  from '../component.js'

export default class CoEuiButton extends Component {
    constructor(parent) {
      let selector = 'eui-button[@data-e2e = "eui-button"]';
      super(parent, selector);
    }
    get buttonContainer() {
      let path = '//span[@class = "eui-button__container"]';
      return this.currentPath + path;
    }
    get buttonIcon() {
      let path = '//eui-icon[contains(@class,"eui-icon")]';
      return this.buttonContainer + path;
    }
    get buttonLabel() {
      let path = '//eui-label[contains(@class,"eui-label")]';
      return this.buttonContainer + path;
    }
    get buttonLoadingIcon() {
      let path = '//span[contains(@class,"eui-button__loading-icon")]';
      return this.buttonContainer + path;
    }
}


