import { Dispatch } from 'redux';

import { RootState } from 'mweb/common/reducers/root';
import { Location } from 'mweb/common/reducers/app';
import { navigationUpdateLocation } from 'mweb/common/actions/navigation';

export function upsellPageTransition(): (
  dispatch: Dispatch<RootState>,
) => Promise<void> {
  return async dispatch => {
    dispatch(navigationUpdateLocation(Location.Upsell));
  };
}
