import SwiftUI

/// Legacy compatibility wrapper.
/// Active implementation is UIKit in ChatListUIKitView.
struct ChatListView: View {
    @Binding var isSearchActive: Bool
    @Binding var isDetailPresented: Bool

    var body: some View {
        ChatListUIKitView(
            isSearchActive: $isSearchActive,
            isDetailPresented: $isDetailPresented
        )
    }
}

#Preview("Chat List") {
    ChatListView(isSearchActive: .constant(false), isDetailPresented: .constant(false))
        .preferredColorScheme(.dark)
}

