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

export default class CoEuiAppTopMessage extends Component {
  constructor(parent) {
    let selector = 'eui-app-top-message';
    super(parent, selector);
    //https://citnet.tech.ec.europa.eu/CITnet/stash/projects/CSDR/repos/eui/browse/packages/components-next/src/lib/layout/eui-app/eui-app-top-message/top-message.component.html?at=support/10.x
  }
  get wrapper() {
    return this.currentPath + '//div[contains(@class,"eui-app-top-message__wrapper")]';
  }
  get content() {
    return this.wrapper + '//div[contains(@class,"eui-app-top-message__content")]';
  }
  get messageClose() {
    return this.wrapper + '//span[contains(@class,"eui-app-top-message__close")]';
  }
  async isCloseable() {
    return await (await $(this.messageClose)).isExisting();
  }
}


