export function shouldRedirectToPostOnboardingOrRecoverUpsell({ hasBeenUpsoldRecover, hasRedirectedToPostOnboarding, lastConnectedDevice, supportedDeviceModels, }) {
    const eligibleForUpsell = lastConnectedDevice?.modelId
        ? supportedDeviceModels.includes(lastConnectedDevice.modelId)
        : false;
    const shouldRedirectToRecoverUpsell = !hasBeenUpsoldRecover && eligibleForUpsell;
    const shouldRedirectToPostOnboarding = !shouldRedirectToRecoverUpsell && !hasRedirectedToPostOnboarding;
    return {
        shouldRedirectToRecoverUpsell,
        shouldRedirectToPostOnboarding,
    };
}
//# sourceMappingURL=shouldRedirectToPostOnboardingOrRecoverUpsell.js.map