import { DateMenu } from '@/manager/shared/components/DateMenu';
import { BaseComponent } from '@/shared/base/BaseComponent';

export class SingleDatePicker extends BaseComponent {
  private readonly input = this.host.locator('.v-field');
  private readonly menu = new DateMenu(this.input);

  async fill(value: Date): Promise<void> {
    await this.menu.open();
    await this.menu.select(value);
  }
}
