import EuiBasePage from '../eui-base.po.js'
import CoUxDateRangeSelector from '../../../../components/10x/ux/ux-date-range-selector.js'

export default class UxDateRangeSelectorPage extends EuiBasePage {
  constructor() {
      super();
  }
  dateRangeByIndex(index) {
    return new CoUxDateRangeSelector(this.root).byIndex(index);
  }
  dateRangeById(id) {
    return new CoUxDateRangeSelector(this.root).byId(id);
  }
  dateRangeFromSectionById(id) {
    return new CoUxDateRangeSelector(this.sectionById(id));
  }
  dateRangeFromSectionByIdAndIndex(id, index) {
    return new CoUxDateRangeSelector(this.sectionById(id)).byIndex(index);
  }
}

