import SwiftData
import SwiftUI

@main
struct KDChatApp: App {
    @State private var connectionManager = ConnectionManager()

    init() {
        SoundPlayer.configureSession()
    }

    var body: some Scene {
        WindowGroup {
            ContentView()
                .environment(connectionManager)
        }
        .modelContainer(for: SavedMessage.self)
    }
}
