import Component from '../../component.js'
import { elementAttributeContains } from '../../../core/utils.js'

export default class CoEuiAppSidebarDrawer extends Component {
    constructor(parent) {
      let selector = 'eui-app-sidebar-drawer';
      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-sidebar/sidebar-drawer/sidebar-drawer.component.html?at=support/F10.x
    }
    get content() {
      let path = '//div[contains(@class,"eui-app-sidebar-drawer-content")]';
      return this.currentPath + path;
    }
    async isExpanded() {
      return await elementAttributeContains(this.currentPath, 'class', 'eui-app-sidebar-drawer--expanded');
    }
}


