//
//  WorkoutsApp.swift
//  Workouts
//
//  Copyright 2025 Rouslan Zenetl. All Rights Reserved.
//

import SwiftUI
import SwiftData

@main
struct WorkoutsApp: App {
    @State private var services = AppServices()

    var body: some Scene {
        WindowGroup {
            RootGateView()
                .environment(services)
                .environment(services.syncEngine)
                .modelContainer(services.container)
                .task { await services.bootstrap() }
        }
    }
}
