import EuiBasePage from '../eui-base.po.js';
import CoUxSplitButton from '../../../../components/10x/ux/ux-split-button.js';
import CoUxModal from '../../../../components/10x/ux/ux-modal.js';

export default class UxSplitButtonPage extends EuiBasePage {
  constructor() {
      super();
  }
  splitButtonByIndex(index) {
    return new CoUxSplitButton(this.root).byIndex(index);
  }
  splitButtonById(id) {
    return new CoUxSplitButton(this.root).byId(id);
  }
  splitButtonFromSectionById(id) {
    return new CoUxSplitButton(this.sectionById(id));
  }
  splitButtonFromSectionByIdAndIndex(id, index) {
    return new CoUxSplitButton(this.sectionById(id)).byIndex(index);
  }
  modalCoBySectionId(sectionId) {
    return new CoUxModal(this.sectionById(sectionId))
  }
  splitButtonInsideModalBySection(sectionId) {
    return new CoUxSplitButton(this.modalCoBySectionId(sectionId))
  }
}

