import SwiftUI

struct MainTabView: View {
    @EnvironmentObject var appState: AppState

    var body: some View {
        TabView {
            VODLibraryView()
                .environmentObject(appState)
                .tabItem {
                    Label("Movies", systemImage: "film")
                }
                .tag(0)

            TVShowsLibraryView()
                .environmentObject(appState)
                .tabItem {
                    Label("TV Shows", systemImage: "tv")
                }
                .tag(1)
        }
    }
}

#Preview {
    MainTabView()
        .environmentObject(AppState(developmentMode: true))
}
