import Operator from "../Operator"; import TabPresenter from "../../presenters/TabPresenter"; import NavigateClient from "../../clients/NavigateClient"; export default class NavigateHistoryPrevOperator implements Operator { constructor( private readonly tabPresenter: TabPresenter, private readonly navigateClient: NavigateClient ) {} async run(): Promise { const tab = await this.tabPresenter.getCurrent(); await this.navigateClient.historyPrev(tab.id!); } }