import SwiftUI

@main
struct ProjectButlerApp: App {
    @StateObject private var appState = AppState()

    var body: some Scene {
        MenuBarExtra("项目管家", systemImage: "tray.full.fill") {
            MenuBarView()
                .environmentObject(appState)
        }
        .menuBarExtraStyle(.window)

        Settings {
            SettingsView()
                .environmentObject(appState)
        }
    }
}
