2022-04-04 04:23:57 -07:00
|
|
|
//
|
|
|
|
// Welcome.swift
|
|
|
|
// secant-testnet
|
|
|
|
//
|
|
|
|
// Created by Lukáš Korba on 04.04.2022.
|
|
|
|
//
|
|
|
|
|
|
|
|
import Foundation
|
|
|
|
import ComposableArchitecture
|
|
|
|
|
2022-11-05 00:10:06 -07:00
|
|
|
typealias WelcomeStore = Store<WelcomeReducer.State, WelcomeReducer.Action>
|
2022-05-13 09:29:57 -07:00
|
|
|
|
2022-11-05 00:10:06 -07:00
|
|
|
struct WelcomeReducer: ReducerProtocol {
|
|
|
|
struct State: Equatable {}
|
|
|
|
|
|
|
|
enum Action: Equatable {
|
|
|
|
case debugMenuStartup
|
|
|
|
}
|
|
|
|
|
|
|
|
func reduce(into state: inout State, action: Action) -> ComposableArchitecture.EffectTask<Action> {
|
2022-04-04 04:23:57 -07:00
|
|
|
return .none
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-05-13 09:29:57 -07:00
|
|
|
// MARK: - Store
|
2022-04-04 04:23:57 -07:00
|
|
|
|
|
|
|
extension WelcomeStore {
|
|
|
|
static var demo = WelcomeStore(
|
|
|
|
initialState: .placeholder,
|
2022-11-05 00:10:06 -07:00
|
|
|
reducer: WelcomeReducer()
|
2022-04-04 04:23:57 -07:00
|
|
|
)
|
|
|
|
}
|
2022-05-13 09:29:57 -07:00
|
|
|
|
|
|
|
// MARK: - Placeholders
|
|
|
|
|
2022-11-05 00:10:06 -07:00
|
|
|
extension WelcomeReducer.State {
|
|
|
|
static let placeholder = WelcomeReducer.State()
|
2022-05-13 09:29:57 -07:00
|
|
|
}
|