import { BaseComponent } from '@/shared/base/BaseComponent';

export class Switch extends BaseComponent {
  private readonly input = this.host.locator('input[type=checkbox]');

  set(state: boolean): Promise<void> {
    return this.input.setChecked(state);
  }
}
