aboutsummaryrefslogtreecommitdiff
path: root/src/content/usecases/FocusUseCase.ts
blob: 8c62003a15960dc13c1fe3b273fb293445feaca1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
import { injectable, inject } from "tsyringe";
import FocusPresenter from "../presenters/FocusPresenter";

@injectable()
export default class FocusUseCases {
  constructor(@inject("FocusPresenter") private presenter: FocusPresenter) {}

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