import SwiftUI

struct ContentView: View {
    @Environment(ConnectionManager.self) private var manager

    var body: some View {
        Group {
            switch manager.screen {
            case .login:
                LoginView()
            case .connecting:
                ConnectingView()
            case .forms:
                RemoteFormView()
            case .chat:
                ChatView()
            }
        }
        .animation(.default, value: manager.screen)
    }
}
