import SwiftUI

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

    var body: some View {
        NavigationStack {
            if manager.remoteForms.isEmpty {
                ProgressView("Waiting for server...")
                    .navigationTitle("Kirandur")
            } else {
                if let form = manager.remoteForms.last {
                    FormContentView(form: form)
                }
            }
        }
    }
}
