secant-ios-wallet/modules/Sources/Features/CoordFlows/WalletBackupCoordFlowCoordi...

31 lines
824 B
Swift

//
// WalletBackupCoordFlowCoordinator.swift
// Zashi
//
// Created by Lukáš Korba on 2025-04-18.
//
import ComposableArchitecture
import Generated
import RecoveryPhraseDisplay
extension WalletBackupCoordFlow {
public func coordinatorReduce() -> Reduce<WalletBackupCoordFlow.State, WalletBackupCoordFlow.Action> {
Reduce { state, action in
switch action {
// MARK: - Self
case .recoveryPhraseDisplay(.securityWarningNextTapped):
var recoveryPhraseDisplayState = RecoveryPhraseDisplay.State.initial
recoveryPhraseDisplayState.isWalletBackup = true
state.path.append(.phrase(recoveryPhraseDisplayState))
return .none
default: return .none
}
}
}
}