import SwiftUI

@main
struct VideoEditorApp: App {
    @StateObject private var library = SourceLibrary()
    @StateObject private var drafts = DraftStore()

    var body: some Scene {
        WindowGroup {
            TabView {
                DraftsListView()
                    .tabItem { Label("Drafts", systemImage: "square.stack") }
                LibraryView()
                    .tabItem { Label("Library", systemImage: "film") }
            }
            .environmentObject(library)
            .environmentObject(drafts)
        }
    }
}
