import SwiftUI

struct MainTabView: View {
    @Environment(ConnectivityMonitor.self) private var connectivity

    var body: some View {
        TabView {
            Tab(L("tab.library"), systemImage: "books.vertical") {
                LibraryView()
            }

            Tab(L("tab.search"), systemImage: "magnifyingglass") {
                SearchView()
            }

            Tab(L("tab.settings"), systemImage: "gear") {
                SettingsView()
            }
        }
    }
}

#Preview {
    MainTabView()
        .environment(ConnectivityMonitor.shared)
}
