import SwiftUI

struct MainTabView: View {
    @Environment(AuthSession.self) private var auth

    var body: some View {
        TabView {
            RoutesListView()
                .tabItem { Label("Touren", systemImage: "map.fill") }

            TrackingView()
                .tabItem { Label("Aufnehmen", systemImage: "figure.walk") }

            DogsListView()
                .tabItem { Label("Hunde", systemImage: "pawprint.fill") }

            StatisticsView()
                .tabItem { Label("Statistik", systemImage: "chart.bar.fill") }

            SettingsView()
                .tabItem { Label("Mehr", systemImage: "person.crop.circle") }
        }
        .task { await auth.loadProfile() }
    }
}
