import Component  from '../component.js'
import CoEuiDropdown from './eui-dropdown.js';
import CoEuiUserProfileContent from './eui-user-profile-content.js';

export default class CoEuiUserProfile extends Component {
    constructor(parent) {
      let selector = 'eui-user-profile';
      super(parent, selector);
      //https://citnet.tech.ec.europa.eu/CITnet/stash/projects/CSDR/repos/eui/browse/packages/components/layout/eui-user-profile/user-profile.component.html
    }
    get euiDropdownCO() {
      return new CoEuiDropdown(this.currentPath);
    }
    async hasMenu(){
      return await (await this.euiDropdownCO.element()).isExisting();
    }
    get userProfileContentCO(){
      return new CoEuiUserProfileContent(this.euiDropdownCO);
    }
    get euiDropdownContentCO(){
      return this.euiDropdownCO.dropdownContentCO;
    }
    get noMenuUserProfileContentCO(){
      return new CoEuiUserProfileContent(this.currentPath);
    }
}


