2024-06-19 15:15:27 +00:00
|
|
|
enum AccountNavigationState: Stateable {
|
|
|
|
case addAccount
|
|
|
|
}
|
|
|
|
|
|
|
|
struct AccountsState: Stateable {
|
|
|
|
var navigation: AccountNavigationState
|
|
|
|
var accounts: [Account]
|
2024-07-22 12:02:33 +00:00
|
|
|
var discoFeatures: [String: [ServerFeature]]
|
2024-06-19 15:15:27 +00:00
|
|
|
|
|
|
|
var addAccountError: String?
|
|
|
|
}
|
|
|
|
|
|
|
|
// MARK: Init
|
|
|
|
extension AccountsState {
|
|
|
|
init() {
|
|
|
|
navigation = .addAccount
|
|
|
|
accounts = []
|
2024-07-22 12:02:33 +00:00
|
|
|
discoFeatures = [:]
|
2024-06-19 15:15:27 +00:00
|
|
|
}
|
|
|
|
}
|