import Component from '../component.js'

export default class CoEuiCardMediaContent extends Component {
  constructor(parent) {
    let selector = 'img[contains(@class,"eui-card-media__image")]';
    super(parent, selector);
    // https://citnet.tech.ec.europa.eu/CITnet/stash/projects/CSDR/repos/eui/browse/packages/components/eui-card/components/eui-card-media/eui-card-media.component.html
  }
  get legend() {
    return this.currentPath + '/following-sibling::div[contains(@class,"eui-card-media__legend")]';
  }
  async hasLegend() {
    return await (await $(this.legend)).isExisting();
  }
}
