import SwiftUI

struct ContentView: View {
    @State private var environment = ServerSettings.environment
    @State private var localBaseURL = ServerSettings.localBaseURL
    @State private var activeBaseURL = ServerSettings.activeBaseURL

    var body: some View {
        WordLoopWebContainer(
            environment: $environment,
            localBaseURL: $localBaseURL,
            baseURL: activeBaseURL,
            onBaseURLChange: { baseURL in
                activeBaseURL = baseURL
            }
        )
    }
}

#Preview {
    ContentView()
}
