aboutsummaryrefslogtreecommitdiff
path: root/src/content/usecases/FocusUseCase.ts
blob: 0ad402174cbf4981a06e304c8bcdb64cda09de67 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import FocusPresenter, { FocusPresenterImpl }
  from '../presenters/FocusPresenter';

export default class FocusUseCases {
  private presenter: FocusPresenter;

  constructor({
    presenter = new FocusPresenterImpl(),
  } = {}) {
    this.presenter = presenter;
  }

  focusFirstInput() {
    this.presenter.focusFirstElement();
  }
}