import Component from '../component.js';
import CoEuiButton from './eui-button.js';
import CoEuiUserProfile from './eui-user-profile.js';
import CoEuiUserProfileMenu from './eui-user-profile-menu.js';
import CoEuiIconSvg from './eui-icon-svg.js';

export default class CoEuiAppSidebarHeaderUserProfile extends Component {
  constructor(parent) {
    let selector = 'eui-app-sidebar-header-user-profile';
    super(parent, selector);
    //https://citnet.tech.ec.europa.eu/CITnet/stash/projects/CSDR/repos/eui/browse/packages/components/layout/eui-app/eui-app-sidebar/sidebar-header-user-profile/sidebar-header-user-profile.component.html
  }
  get userProfileCO(){
    return new CoEuiUserProfile(this.currentPath);
  }
  get userProfileMenuCO(){
    return new CoEuiUserProfileMenu(this.userProfileCO);
  }
  get toggleUserProfileCO(){
    return new CoEuiButton(this.currentPath).addPredicateAttributeContains('aria-label', 'profile');
  }
  get toggleUserProfileIconCO(){
    return new CoEuiIconSvg(this.toggleUserProfileCO);
  }
}